Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
On Tue, Nov 30, 2010 at 7:00 PM, C M wrote: > Thanks, Ryan.  I've done that now.  I use the OOP approach to matplotlib and > embed it in wxPython, so my example uses that.  I did not know how to apply > an AutoDateFormatter to an axis if using pylab and figured the basics of > what I am trying to

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Tue, Nov 30, 2010 at 12:23 PM, Ryan May wrote: > On Tue, Nov 30, 2010 at 10:44 AM, C M wrote: > > > > > > On Sun, Nov 28, 2010 at 8:52 PM, C M wrote: > >> > >> How can I correctly subclass AutoDateFormatter and use it in my code? > >> > >> What I am doing is copying the code from matplotlib'

Re: [Matplotlib-users] adding a "number of minor tick marks between major tick marks" feature

2010-11-30 Thread Gökhan Sever
On Mon, Nov 29, 2010 at 3:01 PM, Matthew W. Priddy wrote: > Matplotlib developers, > > I really like using matplotlib to create quality plots, and it seems to have > an option for just about everything.  However, one thing that is not easy to > change is the location of minor tick marks.  To set

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread Ryan May
On Tue, Nov 30, 2010 at 10:44 AM, C M wrote: > > > On Sun, Nov 28, 2010 at 8:52 PM, C M wrote: >> >> How can I correctly subclass AutoDateFormatter and use it in my code? >> >> What I am doing is copying the code from matplotlib's AutoDateFormatter >> and changing the strings for how the dates ar

Re: [Matplotlib-users] subclassing AutoDateFormatter correctly

2010-11-30 Thread C M
On Sun, Nov 28, 2010 at 8:52 PM, C M wrote: > How can I correctly subclass AutoDateFormatter and use it in my code? > > What I am doing is copying the code from matplotlib's AutoDateFormatter and > changing the strings for how the dates are represented and making that a > class, MyAutoDateFormatt

Re: [Matplotlib-users] [mplot3d] remove background

2010-11-30 Thread Benjamin Root
On Sun, Nov 28, 2010 at 7:48 PM, Jae-Joon Lee wrote: > If you want the whole background to disappear, simply call set_axis_off > method. > > ax.set_axis_off() > > To control the visibility of each element, use something like below. > > for axis in ax.w_xaxis, ax.w_yaxis, ax.w_zaxis: > for elt in

Re: [Matplotlib-users] adding a "number of minor tick marks between major tick marks" feature

2010-11-30 Thread Matthias Michler
On Monday November 29 2010 22:01:29 Matthew W. Priddy wrote: > Matplotlib developers, > > I really like using matplotlib to create quality plots, and it seems to > have an option for just about everything. However, one thing that is not > easy to change is the location of minor tick marks. To se

Re: [Matplotlib-users] normal x-y axes without a box

2010-11-30 Thread Benjamin Root
On Tue, Nov 30, 2010 at 2:49 AM, David Pine wrote: > Is there a simple way to make a plot with axes that look like those in > test1.png rather than like those in test.png? Here is the code that > produced test.png. Thanks. > > Dave Pine > > import numpy as np > import matplotlib.pyplot as plt >

[Matplotlib-users] normal x-y axes without a box

2010-11-30 Thread David Pine
Is there a simple way to make a plot with axes that look like those in test1.png rather than like those in test.png? Here is the code that produced test.png. Thanks. Dave Pine import numpy as np import matplotlib.pyplot as plt t = np.linspace(0., 20., 100) y = np.sin(t) fig = plt.figure(1,