Dear list,
I am making a 3d plot of a set of functions one after the other.
Actually I do this interactively, but what matter should only be that
I plot, clear the axis, plot again and so on.
I want to display a colorbar for each of those plots. The first thing
I tried was calling
fig.colorbar(surf, shrink=0.5, aspect=10)
each time. This produced a new colorbar each time I called it. So
thats not working, but thats ok.
My question is now, how do I update the colorbar? I tried several methods:
#self.cbShape.update_bruteforce(surf)
self.cbShape.update_normal(surf)
self.cbShape.changed()
self.cbShape.update_ticks()
but none of them updated the colorbar. So the plot clearly used colors
from [0, 0.2] but the colorbar always stays at [0, 0.05] (which are
the values from the first time I drew).
How to correctly update the colorbar?
-Holger
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users