Re: [Matplotlib-users] use of del() to delete a line

2008-12-11 Thread TP
TP wrote: I have a question about the behavior of del() Python built-in. Ok, del only removes a name from the local namespace. I have found an old answer of John, below. It seems that a better solution is to use the remove method of a line instance:

[Matplotlib-users] when the same Line2D is plot on two subplots, it disappears on the two subplots

2008-12-11 Thread TP
Hi, I use matplotlib 0.91.2. When I plot the same Line2D on two subplots, it disappears: execute the following script: ### from pylab import * ion() f = figure() s = f.add_subplot(211) curve = matplotlib.lines.Line2D([0,1],[0,1],color='m') s.add_line( curve ) s2 =

Re: [Matplotlib-users] use of del() to delete a line

2008-12-11 Thread John Hunter
On Thu, Dec 11, 2008 at 7:56 AM, TP [EMAIL PROTECTED] wrote: TP wrote: I have a question about the behavior of del() Python built-in. Ok, del only removes a name from the local namespace. I have found an old answer of John, below. It seems that a better solution is to use the remove method

Re: [Matplotlib-users] when the same Line2D is plot on two subplots, it disappears on the two subplots

2008-12-11 Thread John Hunter
On Thu, Dec 11, 2008 at 10:19 AM, TP [EMAIL PROTECTED] wrote: Hi, I use matplotlib 0.91.2. When I plot the same Line2D on two subplots, it disappears: execute the following script: ### from pylab import * ion() f = figure() s = f.add_subplot(211) curve =

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jörgen Stenarson
Michael Droettboom skrev: put the pfm/pfb files it somewhere else and have matplotlib use it? I believe Nimbus Roman is just a clone of Times that is included with Ghostscript. http://www.tug.dk/FontCatalogue/nimbus/ If you have Times or Times New Roman installed, that's probably a

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Michael Droettboom
Jörgen Stenarson wrote: Michael Droettboom skrev: put the pfm/pfb files it somewhere else and have matplotlib use it? I believe Nimbus Roman is just a clone of Times that is included with Ghostscript. http://www.tug.dk/FontCatalogue/nimbus/ If you have Times or Times New Roman installed,

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jouni K . Seppänen
Michael Droettboom md...@stsci.edu writes: Jörgen Stenarson wrote: I tried to use usetex to generate my pdf figures but I got a crash when saving the figure, log attached. I traced the crash to find_tex_file(), apparently ' can not be used to quote filenames in the windows shell it has to

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jörgen Stenarson
Jouni K. Seppänen skrev: In Unix shells ' is the better quoting character because all sorts of things have special meaning within characters... but I changed it to use subprocess.Popen instead, so we shouldn't need to worry about shell quoting at all. Jörgen: Thanks for your report,

Re: [Matplotlib-users] Updated Lasso Demo

2008-12-11 Thread Eric Bruning
+1 for including Brian's changes in the shipping example. Brian, You might also be interested in an alternate, polygon-based lasso I developed a while back. Though it meets my needs, beware of backend-specific problems with idle events that I never resolved. -Eric