>2010/1/20 Mario Mech <m...@meteo.uni-koeln.de>: > cb = pyplot.colorbar(format=r"%2.1f") > for j in cb.ax.get_yticklabels(): > j.set_text('bla') > pyplot.show() > > Doesn't do anything.
It looks like cb.ax.get_yticklabels() returns a list of copies of the Text objects. Since you are only changing the copies it has no effect on your figure. You'll need to use cb.ax.set_yticklabels() and pass a list of strings to use as tick labels. See http://matplotlib.sourceforge.net/examples/pylab_examples/colorbar_tick_labelling_demo.html for an example. Cheers, Scott ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users