Re: [Matplotlib-users] Basemap Rendering Issue

2010-07-12 Thread Steve McFarlin
I was wrong in my last email. I was running another script and has a residual image from when I uploaded. I will test this and and post back. On Jul 12, 2010, at 6:15 PM, Jeff Whitaker wrote: > On 7/12/10 5:34 PM, Steve McFarlin wrote: >> Hello, >> >> I have an issue rendering with basemap on a

Re: [Matplotlib-users] Plot moves while using the "Zoom to rectangle" button

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 8:05 PM, John Hunter wrote: > All of which is discouraging: we both see bugs but different ones on > linux, the appearance of the bug is caused by adding a combobox which > is not used (on my system), the bug appears on some platforms (linux) > but not others (win) and it a

Re: [Matplotlib-users] Basemap Rendering Issue

2010-07-12 Thread Jeff Whitaker
On 7/12/10 5:34 PM, Steve McFarlin wrote: > Hello, > > I have an issue rendering with basemap on a Debian server using Agg. I have > confirmed that matplotlib does render using the following example. > > # do this before importing pylab or pyplot > import matplotlib > matplotlib.use('Agg') > impor

Re: [Matplotlib-users] Basemap Rendering Issue

2010-07-12 Thread Steve McFarlin
Hello Jeff, Again this was an issue with my lack of understanding. Installing python-matplotlib-data solved the issue. Thanks once again. - Steve (aka. AbstractMapping) On Jul 12, 2010, at 6:15 PM, Jeff Whitaker wrote: > On 7/12/10 5:34 PM, Steve McFarlin wrote: >> Hello, >> >> I have an is

Re: [Matplotlib-users] Plot moves while using the "Zoom to rectangle" button

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 6:39 PM, João Luís Silva wrote: > > > John Hunter wrote: >> >> On Mon, Jul 12, 2010 at 5:58 PM, João Luís Silva >> wrote: >>> >>> Hi, >>> >>> I've finally created a small script that demonstrates a bug that I've >>> been >>> enduring for a long time. I haven't seen it repo

Re: [Matplotlib-users] Basemap Rendering Issue

2010-07-12 Thread Steve McFarlin
After a reinstallation of a few libraries the error message changed. It is as if basemap is not linked to matplotlib. Traceback (most recent call last): File "testImageGen.py", line 117, in setCommonBaseMapProperties(m) File "/home/forecast/sgWaveModel/sgUtil.py", line 38, in setCommonB

[Matplotlib-users] Basemap Rendering Issue

2010-07-12 Thread Steve McFarlin
Hello, I have an issue rendering with basemap on a Debian server using Agg. I have confirmed that matplotlib does render using the following example. # do this before importing pylab or pyplot import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add

Re: [Matplotlib-users] Plot moves while using the "Zoom to rectangle" button

2010-07-12 Thread João Luís Silva
John Hunter wrote: > On Mon, Jul 12, 2010 at 5:58 PM, João Luís Silva wrote: >> Hi, >> >> I've finally created a small script that demonstrates a bug that I've been >> enduring for a long time. I haven't seen it reported before, so I may be >> doing something wrong. The bug is as follows: Under ce

Re: [Matplotlib-users] Plot moves while using the "Zoom to rectangle" button

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 5:58 PM, João Luís Silva wrote: > Hi, > > I've finally created a small script that demonstrates a bug that I've been > enduring for a long time. I haven't seen it reported before, so I may be > doing something wrong. The bug is as follows: Under certain conditions, in > an

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 5:11 PM, Jeffrey Blackburne wrote: > Actually, I have been able to do it like this: > > mpl.rcParams['patch.linewidth'] = 0.2 > > Hope that helps, and sorry I didn't reply sooner. Of course this will affect any other patches in your figure (eg Rectangles from histogram plo

[Matplotlib-users] Plot moves while using the "Zoom to rectangle" button

2010-07-12 Thread João Luís Silva
Hi, I've finally created a small script that demonstrates a bug that I've been enduring for a long time. I haven't seen it reported before, so I may be doing something wrong. The bug is as follows: Under certain conditions, in an embedded gtk application, when selecting an area with the "Zoom

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread Jeffrey Blackburne
On Jul 12, 2010, at 5:45 PM, Janne Blomqvist wrote: >>> a.legend() >> >> Change this to >> >> lg = a.legend() >> fr = lg.get_frame() >> fr.set_lw(0.2) > > Thanks, this solved it. A bit annoying that it can't be done with rc > params, but hey, at least it works. Hi Janne, Actually, I have bee

Re: [Matplotlib-users] imshow memory leak in pylab mode?

2010-07-12 Thread K . -Michael Aye
On 2010-07-12 23:17:19 +0200, John Hunter said: > On Mon, Jul 12, 2010 at 4:06 PM, K.-Michael Aye > wrote: >> Dear all, >> >> I'm not sure if this is by design or a problem: >> >> In a pylab session, if I repeatedly call imshow with the same image, >> memory increases each time. >> This does n

Re: [Matplotlib-users] Scale legend box border, dashed and dotted lines when the figure size is changed

2010-07-12 Thread Janne Blomqvist
On Sat, Jul 10, 2010 at 18:42, Jouni K. Seppänen wrote: > Janne Blomqvist writes: > >> The problem I'm having is that as the figure is then pretty small, I >> can scale font sizes, axis sizes, line widths etc., but what I've been >> unable to figure out is how to scale dashed or dotted lines, as

Re: [Matplotlib-users] imshow memory leak in pylab mode?

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 4:06 PM, K.-Michael Aye wrote: > Dear all, > > I'm not sure if this is by design or a problem: > > In a pylab session, if I repeatedly call imshow with the same image, > memory increases each time. > This does not happen if i go the 'Artists' way (fig = .., ax = > fig.add--

[Matplotlib-users] imshow memory leak in pylab mode?

2010-07-12 Thread K . -Michael Aye
Dear all, I'm not sure if this is by design or a problem: In a pylab session, if I repeatedly call imshow with the same image, memory increases each time. This does not happen if i go the 'Artists' way (fig = .., ax = fig.add---, im = ax.imshow) Is there a way to avoid memory consumption like t

[Matplotlib-users] Update Colorbar

2010-07-12 Thread Aman Thakral
Hi, Is there a way to get the current colorbar (or a list of colorbars) for the current axes and update the mappable property? If an update is not possible, i would like to replace the current colorbar with a new one. I've tried something similar to the following: import pylab as plt fig = plt.

Re: [Matplotlib-users] No color scaling when using plot_surface. Please help

2010-07-12 Thread Benjamin Root
Ah, I misread your original post and thought you were talking about pcolor. I will take a look at plot_surface and see if there is a possible reason for your issue. I have an idea of what is happening, but I have to see the code when I get back to my office tomorrow. Ben Root On Sun, Jul 11, 201

[Matplotlib-users] permission denied error

2010-07-12 Thread Isaac Salazar
Hello,I am getting a permission error when trying to open a figure or plotting using matplotlib.  TclError: couldn't open "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/mpl-data/images/home.ppm": permission deniedAttached is a test log file. Isaac SalazarW

Re: [Matplotlib-users] Problems with pygtk and matplotlib

2010-07-12 Thread John Hunter
On Sun, Jul 11, 2010 at 12:52 PM, Preben Randhol wrote: >> If you could create a minimal example starting with >> embedding_in_gtk3.py that replicates your problem, we're more likely >> to be able to help. Thanks for posting the example. This runs fine for me (I can pan, zoom, zoom to rect, the

Re: [Matplotlib-users] My suspects goes to ....

2010-07-12 Thread John Hunter
On Mon, Jul 12, 2010 at 9:35 AM, Ademir Francisco da Silva wrote: > Hello John ..., > > I was thinking about our speech by email yesterday and I am not sure that > the problem is in that unofficial compilation I am really surmising about > those several changes in Python 2.7, anyway is worthy to v

Re: [Matplotlib-users] Problems with pygtk and matplotlib

2010-07-12 Thread Preben Randhol
On Sun, 11 Jul 2010 13:39:05 -1000 Eric Firing wrote: > On 07/11/2010 07:52 AM, Preben Randhol wrote: > > >> > >> Also, are you using backend_gtk or backend_gtkagg (and does it > >> matter for your problem?) > > > > I use GTKAgg and it works. GTK doesn't. > > > > backend_gtk has limitations tha