thanks for help,
finally I found the following solution
elmar
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
N = 200
x = np.linspace(0,1,N)
y = np.random.randn(N)
z = np.random.randn(N)*2+5
cm = mpl.cm.get_cmap('RdYlBu')
sc = plt.scatter(x, y, c=z, vmin=min(z), vmax=max(z), s=35, cmap=cm)
plt.colorbar(sc)
plt.show()
Am 19.10.2012 21:59, schrieb Joe Kington:
> plt.scatter(x, y, c=z, marker='s')
> plt.colorbar()
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users