Re: [Matplotlib-users] plot_surface in pylab mode?

2013-04-01 Thread Michael Aye
On 2013-04-01 13:45:07 +, Benjamin Root said: > > On Fri, Mar 29, 2013 at 7:30 PM, Michael Aye > wrote: > Is there a pylab version of ax.plot_surface? > I am asking because the following does not work when running an ipython > notebook in pylab mode: > #0: #create some data …. > #1: fig = p

[Matplotlib-users] native latex rendering:

2013-04-01 Thread Jody Klymak
Hi All, rc('text', usetex=False) plot(arange(1,50)) title(' Boo Whoo') xlabel('$t\ [m^2s^{-1}]$') Works OK, except the x label is typeset in a different font than the rest due to the latex rc('text', usetex=False) rc('text.latex',preamble="\usepackage{cmbright}") plot(arange(1,50)) title(' Bo

Re: [Matplotlib-users] Plotting from datafile

2013-04-01 Thread Sayan Chatterjee
Thanks Benjamin...I put that plt.ylim earlier but at a wrong place. It worked. Thanks again! On 1 April 2013 19:01, Benjamin Root wrote: > > > On Mon, Apr 1, 2013 at 7:29 AM, Sayan Chatterjee < > sayanchatter...@gmail.com> wrote: > >> Thank you very much!!...'plt.cla()' worked!! >> >> One sligh

Re: [Matplotlib-users] MonthLocator doesn't honour rrule bymonthday -1 value for last day of month

2013-04-01 Thread Mark Lawrence
On 29/03/2013 15:49, Mark Lawrence wrote: > Hi all, > > From http://labix.org/python-dateutil > > "To generate a rrule for the use case of "a date on the specified day of > the month, unless it is beyond the end of month, in which case it will > be the last day of the month" use the following: >

Re: [Matplotlib-users] plot_surface in pylab mode?

2013-04-01 Thread Benjamin Root
On Fri, Mar 29, 2013 at 7:30 PM, Michael Aye wrote: > Is there a pylab version of ax.plot_surface? > I am asking because the following does not work when running an ipython > notebook in pylab mode: > #0: #create some data …. > #1: fig = plt.figure() > ax = fig.gca(projection='3d') > #2: su

Re: [Matplotlib-users] Plotting from datafile

2013-04-01 Thread Benjamin Root
On Mon, Apr 1, 2013 at 7:29 AM, Sayan Chatterjee wrote: > Thank you very much!!...'plt.cla()' worked!! > > One slight hiccup. Could you please tell me how to fix up the Y grid? I > mean I want every plot to have scale from 0 to 15 (say), not that some will > have -5 to 10 and some will have 5 to 2

Re: [Matplotlib-users] Plotting from datafile

2013-04-01 Thread Sayan Chatterjee
Thank you very much!!...'plt.cla()' worked!! One slight hiccup. Could you please tell me how to fix up the Y grid? I mean I want every plot to have scale from 0 to 15 (say), not that some will have -5 to 10 and some will have 5 to 20.Is it possible?...it's absolutely necessary for the concerned si