I am trying to make a simple scatter plot in python but I can't figure out how to scale (i) the size of the markers with the x-y axis range and (ii) the color of the markers with a 3rd variable (such that colors will span the full colormap range).
This is something trivial to do with IDL for instance but I can't find a simple solution with matplotlib.
Any idea would be appreciated !
Thanks
EDIT:
Here is a simple example.
import matplotlib.pyplot as plt
x = [10.,60.]
y = [30.,90.]
z = [3.,8.] # = diameters of x and y points
plt.xlim(0., 100.)
plt.ylim(0., 100.)
plt.scatter(x,y,s=my_marker_size,marker='o')
How to define my_marker_size such that my points are represented by circles with diameters given by z on this plot ?
