2009/8/21 Daniel Platz <mail.to.daniel.platz@...982...>:
I just realized that I did not give the correct plot object when creating
the colorbar. Now it works perfectly to pass arguments by set_xticklabels().However, another question just arose. To format the numbers on the tick
labels I tried to pass a format string when creating the colorbar with the
format parameter. But it has no effect. The same when I give a
FormatStrFormatter object. I also tried to use
cb.ax.axis.set_major_formatter(). The effect of this was. That it sets the
labels to the range between 0 and 1. Is there a solution for this problem
besides entering the tick labels manually?
Scott Sinclair wrote:
2009/8/20 Daniel Platz <mail.to.daniel.platz@...982...>:
The setting of the new ticklabels works now. But the first label is
attached to the second tick. I tried to adapt the clim range by using
the vmin and vmax option of pcolor but it did not help.Does this help?
http://matplotlib.sourceforge.net/examples/pylab_examples/colorbar_tick_labelling_demo.html
Hi Daniel,
It's hard for me to see what's happening here without a simple
standalone code example to illustrate your problem. Trying to
reproduce what you're seeing with a simple example will often reveal
where you're going wrong..
Also note that the default on this mailing list is not to send replies
to the list. Please use "Reply to all" so that your response goes to
the entire list and not directly to me, you're more likely to get a
helpful response that way. I'm sending this to the list, hopefully
someone can help you to resolve the issue.
Cheers,
Scott