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. :)
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.
ReplyDeleteI like how you foreshadowed your upcoming work. Consider doing that in the future.