Wednesday, April 3, 2013

4/3/2013 Plotting Continued

 I worked with Dr. Bellis on plotting during this meeting. Over the break, Dr. Bellis took the code that he and I worked on and simplified it even more. Now, the user just have to enter the equation and does not have to made extra changes to the codes. We also worked on how to input data points and plot them using Processing. We used the data from Samuel Ting's published report on AMS findings (see my previous post for more information on this topic) and plotted the first five points on our simulation.
Instead of drawing lines to form a graph, we drew ellipses (circles) to plot each data point.
Codes used for plotting data points:

  xpts[0] = 0.575;  ypts[0] = 0.0947;
  xpts[1] = 0.730;  ypts[1] = 0.0919;
  xpts[2] = 0.905;  ypts[2] = 0.0902;
  xpts[3] = 1.050;  ypts[3] = 0.0842;
  xpts[4] = 1.330;  ypts[4] = 0.0783;  

  plot.draw_data(xpts,ypts,color(255,0,0)); //instead of drawing equations we draw the x- and y- values. 


There are many things that we can do to improve this graph. We are thinking on how to autoscale the graph produced (we made our simulation able to auto-adjust the tick marks based on the size of the window the users want), but we have not figure it out yet. 

Dr. Bellis and I are the first ones to create graphing codes for Processing (usually it is used for art-related purposes, not science), so we are going to upload or codes to the internet and let more people know about this function and help us improve the codes. :)

For the next few weeks, I am going to start drawing graphs to present Dr. Bellis's thesis on Dark Matter. :) 


1 comment:

  1. Yvonne, I am so glad that you are able to include your interest in Ting in your work. This seems like a wonderful combination of your interests.

    I like how you foreshadowed your upcoming work. Consider doing that in the future.

    ReplyDelete