thanks for your feedback, it helped a lot! I have some questions left,
2011/1/14 Eric Firing <efiring@...202...>:
Quick thoughts with no testing or concrete examples:
1) Don't set the cmap or norm for the colorbar; let it inherit those
properties from the mappable to which it is connected.
Am I doing this correctly in the attached code? It seems there are
several ways of doing this... Which is the suggested one? How can I
label the colorbar?
2) Ensure that the cmap and norm are the same for all collections. You
are already taking care of the cmap, so the problem is that you are
autoscaling the collections separately, which is setting vmin and vmax
to different values for the different collections. Use the data to
figure out the range (vmin, vmax) that you want the colors to span, and
then for each collection, instead of col.autoscale(), use
col\.norm\.vmin = vmin
col\.norm\.vmax = vmax
That was what I needed, see code
(You could also make a single norm instance for all the collections to
use, just as with the cmap, so that you only have to set vmin and vmax
And this I don't understandm could you please elaborate?
Thanks a very lot in advance
best regards from Austria,
3D_colorbar.py (2.24 KB)