Hi,

I am generating a scatter plot with a colorbar, and want to pass on the
colorbar to some function to do something with it, like

plt.scatter(px, py, c=pz, ...)
cb = plt.colorbar()
foo(cb)


My question: How can I extract the range of the colorbar from the cb object?
The colorbar extends from min(pz) to max(pz), but can I access these values
from the cb object alone, without the need to pass pz to foo as well?


Thanks
  Alex
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to