>2010/1/20 Mario Mech <m...@meteo.uni-koeln.de>: > Ok, something like > > cl = cb.ax.get_yticklabels() > cl[0].set_text('bla') > cb.ax.set_yticklabels([elem.get_text() for elem in cl])
This works for me. > But > > cl = cb.ax.get_yticklabels() > > results in a list of Text objects like Text(0,0,''). I have no idea what's happening then. I see: for l in cl: print(l) Text(0,0,'bla') Text(0.166667,0.166667,'1.5') Text(0.333333,0.333333,'3.0') Text(0.5,0.5,'4.5') Text(0.666667,0.666667,'6.0') Text(0.833333,0.833333,'7.5') Text(1,1,'9.0') 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