2010/3/28 Ariel Rokem <aro...@berkeley.edu>:
> Hi Chloe,
>
> _segmentdata - that's what I was looking for!

Hmm, much easier would maybe be:

colorbar = figure.colorbar(...)

colorbar.ax.set_xlim((C.min(), C.max())  # Or .set_ylim() for vertical cbars.

I just did a dive into the matplotlib code and docu:
http://matplotlib.sourceforge.net/api/colorbar_api.html#matplotlib.colorbar.ColorbarBase

It has also the advantage that the xticks represent the correct values.

For small C ranges one should consider using a cmap subdivided finer?

Friedrich

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to