Re: [Matplotlib-users] setting x/yrange on a pcolor plot

2010-12-15 Thread Ben Elliston
On Wed, Dec 15, 2010 at 08:02:42PM -0600, Benjamin Root wrote: > Assuming you are doing a pcolor on some 2-D numpy array called 'z': > > ax.set_xlim(xmax=z.shape[1]) > ax.set_ylim(ymax=z.shape[0]) Thanks. I also found (after a bit of digging) that I could just use: axis ('off') Cheers, Ben

Re: [Matplotlib-users] One legend, two axes?

2010-12-15 Thread Paul Ivanov
Skip Montanaro, on 2010-12-15 12:49, wrote: > > Skip,You can call figlegend() and build a legend for the figure, > > irrespectively of any axes. > > Thanks. Sounds like exactly what I need. Hi Skip, I just wanted to chime in and give you a concrete example of how you can get all of the line ins

Re: [Matplotlib-users] Help with strange add_subplot behavior after change_geometry()...

2010-12-15 Thread Åke Kullenberg
I figured it out, I think. I read the docs ( http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.add_axes) on add_axes and found the part about adding a label to a new axes to force matplotlib to add a new axes. So I changed this line from: subplot = self.figure.add_sub

[Matplotlib-users] Help with strange add_subplot behavior after change_geometry()...

2010-12-15 Thread Åke Kullenberg
I am using matplotlib in wxpython to dynamically add subplots to a figure and I am using the geometry_change() method to manage how they are shown. Basically I want all subplot to share the space evenly in one column. With the simple test code I have pasted in below I have run into some weird behav

Re: [Matplotlib-users] setting x/yrange on a pcolor plot

2010-12-15 Thread Benjamin Root
On Wed, Dec 15, 2010 at 4:08 PM, Ben Elliston wrote: > I am trying to plot an 840 x 680 element matrix using pcolor. > matplotlib has decided that the xrange should be 900 and the yrange > 700. Is there a way to tell matplotlib to always use x/yranges that > always match the dimensions of the ma

[Matplotlib-users] setting x/yrange on a pcolor plot

2010-12-15 Thread Ben Elliston
I am trying to plot an 840 x 680 element matrix using pcolor. matplotlib has decided that the xrange should be 900 and the yrange 700. Is there a way to tell matplotlib to always use x/yranges that always match the dimensions of the matrix? Thanks, Ben ---

Re: [Matplotlib-users] x-axis display

2010-12-15 Thread Benjamin Root
On Mon, Dec 13, 2010 at 9:10 PM, Xunchen Liu wrote: > Hello, > > I'm plotting some experimental data and found my x axis variable are > displayed like 1, 2, 3, +1000. It seems depend on how you set a stopper or > something. > I'm wondering how to make it display just 1001, 1002, 1003? > > thanks!

Re: [Matplotlib-users] text annotation

2010-12-15 Thread Benjamin Root
On Wed, Dec 15, 2010 at 9:46 AM, Benoist Laurent wrote: > Hi all, > > I'm still a bit stuck with this probleme of polar annotation. > Let me present the problem in a different way. > > I've got the center of my circle, its radius and even some points on the > circle. > Actually, I'd like to annot

Re: [Matplotlib-users] hatch can not be saved as eps

2010-12-15 Thread Benjamin Root
On Wed, Dec 15, 2010 at 6:25 AM, Teng Liu wrote: > Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686 > GNU/Linux > matplotlib 0.99.1.1 > The script below is copied from > http://matplotlib.sourceforge.net/examples/pylab_examples/hatch_demo.html > It works. But it can not be

Re: [Matplotlib-users] Exclude invisible artists from a relim() and autoscale_view()?

2010-12-15 Thread Åke Kullenberg
I added a feature request. It would be awesome to just have an extra tag whether to include invisible artists. On Wed, Dec 15, 2010 at 10:36 PM, Benjamin Root wrote: > On Wed, Dec 15, 2010 at 8:13 AM, Åke Kullenberg > wrote: > >> I am using matplotlib in a wxpython application where series are

Re: [Matplotlib-users] AttributeError subplot2grid

2010-12-15 Thread Benjamin Root
On Tue, Dec 14, 2010 at 2:29 PM, vt603800 wrote: > I tried to upgrade to version 1.0 but without success. Could anybody tell > where it went wrong? > I downloaded the package matplotlib-1.0.0.tar.gz from > http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0/ > > First I tri

Re: [Matplotlib-users] Exclude invisible artists from a relim() and autoscale_view()?

2010-12-15 Thread Benjamin Root
On Wed, Dec 15, 2010 at 8:13 AM, Åke Kullenberg wrote: > I am using matplotlib in a wxpython application where series are added > dynamically to subplots in a figure. I added the very handy option to toggle > series' visibility (by calling set_visible(False). The catch is however that > the invisi

[Matplotlib-users] Exclude invisible artists from a relim() and autoscale_view()?

2010-12-15 Thread Åke Kullenberg
I am using matplotlib in a wxpython application where series are added dynamically to subplots in a figure. I added the very handy option to toggle series' visibility (by calling set_visible(False). The catch is however that the invisible series are included in the rescaling of the artists (Line2D

Re: [Matplotlib-users] One legend, two axes?

2010-12-15 Thread Skip Montanaro
> Skip,You can call figlegend() and build a legend for the figure, > irrespectively of any axes. Thanks. Sounds like exactly what I need. Skip -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to conne

[Matplotlib-users] hatch can not be saved as eps

2010-12-15 Thread Teng Liu
Linux 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686 GNU/Linux matplotlib 0.99.1.1 The script below is copied from http://matplotlib.sourceforge.net/examples/pylab_examples/hatch_demo.html It works. But it can not be saved as an eps file. I have a lot of histogram plots using "h