Re: [Matplotlib-users] findobj problem!

2008-09-16 Thread Eric Firing
sa6113 wrote: > I want to use findobj attribute by this code, > > import matplotlib.pyplot as plt > import matplotlib.text as text > . > . > . > fig = plt.figure() > for t in fig.findobj(text.Text): > t.set_family(somefamily) > > but I get this error : > Figure instance has no attribute '

[Matplotlib-users] show() won't show

2008-09-16 Thread David J Strozzi
Hi, I'm a light matplotlib user, and generally haven't had problems the few times I've installed it. However, now I am. I am building matplotlib (and a suite of python tools, including python itself) on a big computer cluster. I don't have root access and that's non-negotiable. I've compile

Re: [Matplotlib-users] set font problem.

2008-09-16 Thread sa6113
While using this code I get an error saying : Figure instance has no attribute 'findobj' I found that, I need a new version of mpl that install on python 2.4 and higher but I used python 2.3 and I can't upgrade that. would you plz tell me that may I accomplish that witout findobject?? How? Th

Re: [Matplotlib-users] Information request

2008-09-16 Thread De Pauw Antoine
Hi Jeff, I have played a bit with Matplotlib since last week, and I may still have some questions for you I have masked my value array so it doesn't draw points under a certain value, but doing this causes the colormap to rescale for the new values I have tried to set a custom colormap but it is

Re: [Matplotlib-users] Information request

2008-09-16 Thread Jeff Whitaker
De Pauw Antoine wrote: > Hi Jeff, > > I have played a bit with Matplotlib since last week, and I may still have > some questions for you > > I have masked my value array so it doesn't draw points under a certain > value, but doing this causes the colormap to rescale for the new values > Antoine

[Matplotlib-users] font name . . .

2008-09-16 Thread sa6113
I want to set font name to 'tahoma.ttf' this code work propely but is there any way I don't want to use full path name in fname property. import matplotlib.font_manager as fm import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ax.plot([1,2,3],

Re: [Matplotlib-users] show() won't show

2008-09-16 Thread Jeff Whitaker
David J Strozzi wrote: > Hi, > > I'm a light matplotlib user, and generally haven't had problems the > few times I've installed it. However, now I am. > > I am building matplotlib (and a suite of python tools, including > python itself) on a big computer cluster. I don't have root access > and

Re: [Matplotlib-users] Information request

2008-09-16 Thread De Pauw Antoine
Jeff, In fact my satellite data is displaying clouds of various gases, and I don’t like the fact that "empty" places are left dark blue (I use jet reversed cmap) By masking data under a certain value, I isolate the clouds and then they are in evidence When I use vmin and vmax I'm able to avoid t

[Matplotlib-users] polar plot

2008-09-16 Thread jan gillis
Hello, I have a problem with polar plot, if i run the following code in matplotlib 0.98.3, polar plot is drawing a extra circle to go from angle -3.14159265 to angle 3.03753126. Is there a solution for this problem? import numpy as np from matplotlib.pyplot import figure, sh

Re: [Matplotlib-users] font name . . .

2008-09-16 Thread Michael Droettboom
You can just do ax.legend(prop=fm.FontProperties('Tahoma')) Cheers, Mike sa6113 wrote: > I want to set font name to 'tahoma.ttf' this code work propely but is there > any way I don't want to use full path name in fname property. > > import matplotlib.font_manager as fm > import ma

[Matplotlib-users] Cell and auto_set_font_size() question

2008-09-16 Thread Samir Wadhawan
Hi, I am new to Python and trying to use Cell and its method auto_set_font_size() here is the code " def draw_Cell(self, lower, upper, node1, branch_name): c = Cell(lower, upper[0]-lower[0], upper[1] - lower[1], edgecolor='k', text = branch_name, fa

[Matplotlib-users] 'Inverting' a colormap (was "Next problem: pixel-to-pixel alpha variation")

2008-09-16 Thread David Goldsmith
--- On Tue, 9/9/08, David Goldsmith <[EMAIL PROTECTED]> wrote: > eventually ... I'd like to do what John implies > is possible, i.e., "invert" a cm back to its RGB > table - John (or anyone) can you short-cut the learning > process for me w/ a code example of how to do this? :-) > Thanks! > > DG

Re: [Matplotlib-users] 'Inverting' a colormap (was "Next problem: pixel-to-pixel alpha variation")

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 2:40 PM, David Goldsmith <[EMAIL PROTECTED]> wrote: > --- On Tue, 9/9/08, David Goldsmith <[EMAIL PROTECTED]> wrote: > >> eventually ... I'd like to do what John implies >> is possible, i.e., "invert" a cm back to its RGB >> table - John (or anyone) can you short-cut the lea

Re: [Matplotlib-users] Information request

2008-09-16 Thread Eric Firing
De Pauw Antoine wrote: > Jeff, > > In fact my satellite data is displaying clouds of various gases, and I don’t > like the fact that "empty" places are left dark blue (I use jet reversed > cmap) > > By masking data under a certain value, I isolate the clouds and then they > are in evidence > > W

Re: [Matplotlib-users] 'Inverting' a colormap (was "Next problem: pixel-to-pixel alpha variation")

2008-09-16 Thread David Goldsmith
Excellent, thanks!!! DG --- On Tue, 9/16/08, John Hunter <[EMAIL PROTECTED]> wrote: > From: John Hunter <[EMAIL PROTECTED]> > Subject: Re: [Matplotlib-users] 'Inverting' a colormap (was "Next problem: > pixel-to-pixel alpha variation") > To: [EMAIL PROTECTED] > Cc: matplotlib-users@lists.sourcef

[Matplotlib-users] plot legend behavior & question

2008-09-16 Thread charles reid
Hi there - I'm using the latest stable pylab/matplotlib (0.98.3) via OS X 10.5.4. I am plotting a simple array of data, and I'm getting some strange behavior when I try to add a legend to the plot. First, the plot without the legend: f=figure(1) title("Equilibrium Concentration vs. Equivalence R

[Matplotlib-users] Pleasae remove me from the mailing list

2008-09-16 Thread Cheng-Kong Wu
To whom it may concern, Please remove me from the email list. Thanks! Chris - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK &

Re: [Matplotlib-users] plot legend behavior & question

2008-09-16 Thread Jonathan Helmus
Charles, The legend functions needs a sequence-type object (list,etc) not a tuple as the second argument. The following should work: f.legend(line1,['CO2'],loc=(0.8,0.8)) Not sure about the cursor issue, see if the above solves the problem. You should be able to add a nu

Re: [Matplotlib-users] plot legend behavior & question

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 4:09 PM, charles reid <[EMAIL PROTECTED]> wrote: > Hi there - > > I'm using the latest stable pylab/matplotlib (0.98.3) via OS X 10.5.4. I am > plotting a simple array of data, and I'm getting some strange behavior when > I try to add a legend to the plot. > First, the plot

Re: [Matplotlib-users] plot legend behavior & question

2008-09-16 Thread charles reid
Thank you for the immediate and extremely helpful suggestions. Changing the string to a tuple works great, and I did not think about using the "label" keyword in plot. I think this will greatly simplify the plotting. Thanks again for the "instant gratification". :) Charles == The 2n

Re: [Matplotlib-users] plot legend behavior & question

2008-09-16 Thread Alan G Isaac
On Tue, 16 Sep 2008, charles reid apparently wrote: > f.legend(line1,('CO2'),loc=(0.8,0.8)) ('CO2') is a string not a tuple. ('CO2',) is a tuple. hth, Alan Isaac - This SF.Net email is sponsored by the Moblin Your Move De

[Matplotlib-users] save or pickle figure object

2008-09-16 Thread Josef Koller
Hi folks, I would like to save preliminary figures for later processing and refinement with matplotlib. Is there a way to save or pickle a figure object and later reload it. Matlab has a feature like that and and I was wondering if matplotlib has it too. Thanks a lot, Josef -- Josef Kol

[Matplotlib-users] OSX 10.5 event.key bug

2008-09-16 Thread James Schombert
in matplotlib under 10.5 Mac OS X, if the event.key is 'g' or 'l' then grid plotting ('g') or log plotting ('l') is turned on is this a known bug? any workarounds? J - This SF.Net email is sponsored by the Moblin Your Move D

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 5:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote: > Hi folks, > I would like to save preliminary figures for later processing and > refinement with matplotlib. Is there a way to save or pickle a figure > object and later reload it. Matlab has a feature like that and and I wa

Re: [Matplotlib-users] OSX 10.5 event.key bug

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 8:03 PM, James Schombert <[EMAIL PROTECTED]> wrote: > in matplotlib under 10.5 Mac OS X, if the event.key > is 'g' or 'l' then grid plotting ('g') or log plotting > ('l') is turned on > > is this a known bug? any workarounds? It's a feature, not a bug. Do you have a use ca

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Eric Firing
John Hunter wrote: > On Tue, Sep 16, 2008 at 5:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote: >> Hi folks, >> I would like to save preliminary figures for later processing and >> refinement with matplotlib. Is there a way to save or pickle a figure >> object and later reload it. Matlab has a featu

Re: [Matplotlib-users] OSX 10.5 event.key bug

2008-09-16 Thread John Hunter
On Tue, Sep 16, 2008 at 9:00 PM, James Schombert <[EMAIL PROTECTED]> wrote: > I'm switching from an old graphics package (PGPLOT) to matplotlib, and I > prefer to use the graphics window to input commands (such as, a new > file name) by typing at the bottom of the frame > > so if the file name, for

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Anthony Floyd
On Tue, Sep 16, 2008 at 3:06 PM, Josef Koller <[EMAIL PROTECTED]> wrote: > Hi folks, > I would like to save preliminary figures for later processing and > refinement with matplotlib. Is there a way to save or pickle a figure > object and later reload it. Matlab has a feature like that and and I wa

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Sebastien Binet
Hi Anthony, > As you've already been told, you can't pickle/shelve mpl objects. Our > solution to this is to have a native python shadow object that > contains all the bits and pieces needed to create a figure, and always > build the plots from these shadow objects. This gives us the > advantage

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Anthony Floyd
On Tue, Sep 16, 2008 at 8:17 PM, Sebastien Binet <[EMAIL PROTECTED]> wrote: > Hi Anthony, > >> As you've already been told, you can't pickle/shelve mpl objects. Our >> solution to this is to have a native python shadow object that >> contains all the bits and pieces needed to create a figure, and

Re: [Matplotlib-users] save or pickle figure object

2008-09-16 Thread Ted Drain
We have some experience maintaining persistent object storage over long periods of time. The best solution we've found is to do something like this: - create a read/write method on each class. Every class that needs to be stored must have this. This includes class you would store (eg Figure) an

[Matplotlib-users] Polar plot

2008-09-16 Thread jan gillis
Hello, I have a problem with polar plot, if i run the following code in matplotlib 0.98.3, polar plot is drawing a extra circle to go from angle -3.14159265 to angle 3.03753126. Is there a solution for this problem? import numpy as np from matplotlib.pyplot import figure, sh