November 21st, 2012, 08:11 AM
How to plot a graph with these data
hi. i'd like to understand how to make the following graph in python, using matplotlib.
i have values for pressure, and it varies with y-axis. so, for example i have:
and so on, other sets for other x, eg:
So, what i need to do, is to put pressure values in a x-y graph. How i can do this? I was thinking of dot with different diameters or stuffs like that, but i don't now how to do.
November 21st, 2012, 10:36 AM
You can use different diameters:
s is an array of sizes in units of points^2 (i.e., proportional to area). The diameter would be proportional to sqrt(s).
matplotlib.pyplot.scatter(x, y, s)
You can also choose the color of each point.
will give you the details.