Re: [Matplotlib-users] semilogy

2011-01-06 Thread Neal Becker
Paul Ivanov wrote: > Neal Becker, on 2011-01-05 08:19, wrote: >> I want to plot semilogy with major and minor grid. I tried: >> >> plt.grid(which='both') >> >> But 2 problems: >> >> 1) For semilogy, most of my viewers will expect to see 10 minor >> ticks/major tick. I got 5. How do I change

Re: [Matplotlib-users] semilogy

2011-01-05 Thread Paul Ivanov
Neal Becker, on 2011-01-05 08:19, wrote: > I want to plot semilogy with major and minor grid. I tried: > > plt.grid(which='both') > > But 2 problems: > > 1) For semilogy, most of my viewers will expect to see 10 minor > ticks/major tick. I got 5. How do I change it? Hi Neal, odd, it works

[Matplotlib-users] semilogy

2011-01-05 Thread Neal Becker
I want to plot semilogy with major and minor grid. I tried: plt.grid(which='both') But 2 problems: 1) For semilogy, most of my viewers will expect to see 10 minor ticks/major tick. I got 5. How do I change it? 2) I'd like the major ticks to be solid lines, and minor ticks to be dashed. I

Re: [Matplotlib-users] semilogy with dates on x?

2010-05-14 Thread Alan G Isaac
On 5/14/2010 9:03 AM, Matthias Michler wrote: > ax = fig.add_subplot(111, yscale='log') > > or for any other generated axes 'ax' > ax.set_yscale('log') > > Somehow I was unaware of this possibility. Excellent! Thanks, Alan

Re: [Matplotlib-users] semilogy with dates on x?

2010-05-14 Thread Matthias Michler
On Thursday, May 13, 2010 12:31:08 am Alan G Isaac wrote: > What is the preferred method to do the equivalent of plot_date > with log scaling for the non-date values? > > Thanks, > Alan Isaac Hi Alan, What about using 'plot_date' ans scaling the y-axis by hand? In the example 'date_demo1.py' you

[Matplotlib-users] semilogy with dates on x?

2010-05-12 Thread Alan G Isaac
What is the preferred method to do the equivalent of plot_date with log scaling for the non-date values? Thanks, Alan Isaac -- ___ Matplotlib-users mailing list Matplotlib-use

Re: [Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Jae-Joon Lee
with hold=False, the axes is reset whenever something new is added to the axes. Instead of using pylab.hold(False), clear the figure or axes explicitly (clf() or cla()) -JJ On Mon, Oct 5, 2009 at 9:58 PM, Ross Anderson wrote: > Hi all, > > I'm making multiple semilogy histograms, which for now

[Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Ross Anderson
Hi all, I'm making multiple semilogy histograms, which for now are on separate figures and not in subplots. Here's something patched together: def makehistogram(data,strtitle, filename): fig = Figure() pylab.hold(False) pylab.semilogy(base=10) n, bins, patches = pylab.hist(data, 50

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