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 http://www.nabble.com/Alternate

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 repor

Re: [Matplotlib-users] Font problem

2008-12-11 Thread Jouni K . Seppänen
Michael Droettboom 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 be ".

[Matplotlib-users] The Blue Marble is upside down!

2008-12-11 Thread Mauro Cavalcanti
Dear Jeff & ALL, Attached is the latest version of my Basemap embedded in wxPython sample application. I have added a check menu option that allows one to toggle the overlay of the Blue Marble image on and off the Basemap figure. Everything works well -- except that the Blue Marble image is plotte

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 Ro

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 reasonabl

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") > curv

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 rem

[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 = f.add_subp

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: http://osdir.com/ml/python.matplotlib.gene

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

2008-12-11 Thread TP
Hi everybody, I have a question about the behavior of "del()" Python built-in. In the following example, when I use del() on the copy of a line, it does not delete it, whereas with the original line, it works. Why? I do not understand, because the id is the same for the copy and the original: ###

Re: [Matplotlib-users] Legends for multi-histograms

2008-12-11 Thread Manuel Metz
Zane Selvans wrote: > It seems like there ought to be an easy way to associate labels with the > various groups of patches generated by a call to hist() that uses a list > of arrays, setting label=["a", "list", "of", "strings"] for instance, > instead of having to go in and label one patch from