Re: [Matplotlib-users] semilogy question

2007-10-25 Thread Bernhard Voigt
A simple solution would be: numbers, text = yticks() mytext = ['%.2f' % n for n in numbers] yticks(numbers, mytext) If you need fancier formatting look at Ticker and Formatter API http://matplotlib.sourceforge.net/matplotlib.ticker.html For sure there's something about this in the examples as wel

[Matplotlib-users] semilogy question

2007-10-23 Thread pythonprogrammer
Hi guys. I'm just a newbie at matplotlib. I couldn't find the answer on my quistion in project's docs. I've wrote the following code: from pylab import * semilogy([1, 5, 2, 3, 1, 6], basey=2) show() It works OK but I'd like to see usual decimal numbers instead of 2^0, 2^1, 2^2 ... on y axis. Ho