Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread Sterling Smith
On Jan 22, 2013, at 7:01PM, Benjamin Root wrote: > > > On Tue, Jan 22, 2013 at 9:10 PM, Drain, Theodore R (343P) > wrote: > I have to say I disagree with this "fix". None was a nice, very intuitive > way to hide the label. Many Python systems use None in that kind of role and > I really d

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread Benjamin Root
On Tue, Jan 22, 2013 at 9:10 PM, Drain, Theodore R (343P) < theodore.r.dr...@jpl.nasa.gov> wrote: > I have to say I disagree with this "fix". None was a nice, very intuitive > way to hide the label. Many Python systems use None in that kind of role > and I really doubt anyone is going to use Non

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread Drain, Theodore R (343P)
I have to say I disagree with this "fix". None was a nice, very intuitive way to hide the label. Many Python systems use None in that kind of role and I really doubt anyone is going to use None when they meant "None" so converting it to a string seems like a bad idea. Ted ___

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread David Erickson
On Tue, Jan 22, 2013 at 1:20 PM, Benjamin Root wrote: > > > On Tue, Jan 22, 2013 at 1:57 PM, David Erickson > wrote: >> >> Hello- >> Prior to version 1.2 of MPL I was able to hide labels for certain >> lines in the legend by setting the label=None when plotting a line, >> however in 1.2 it is now

Re: [Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread Benjamin Root
On Tue, Jan 22, 2013 at 1:57 PM, David Erickson wrote: > Hello- > Prior to version 1.2 of MPL I was able to hide labels for certain > lines in the legend by setting the label=None when plotting a line, > however in 1.2 it is now showing the legend entry and visibly printing > "None". Is there a w

Re: [Matplotlib-users] twiny and title

2013-01-22 Thread Jonathan Slavin
Hi Paul, This doesn't solve my problem since the whole point was to have two separate x axes with different scales, etc. One thing that I found that does help is to use the suptitle() method of figure. This at least puts the title at the top of the figure and I can then fiddle with the top offse

Re: [Matplotlib-users] twiny and title

2013-01-22 Thread Paul Hobson
On Tue, Jan 22, 2013 at 12:22 PM, Jonathan Slavin wrote: > Hi, > > I'm having some trouble with using twiny and a title on the plot. The > title is writing over the axis label -- and even the tick labels. I've > tried tight_layout() but it doesn't seem to help. I could use fig.text > instead of

[Matplotlib-users] twiny and title

2013-01-22 Thread Jonathan Slavin
Hi, I'm having some trouble with using twiny and a title on the plot. The title is writing over the axis label -- and even the tick labels. I've tried tight_layout() but it doesn't seem to help. I could use fig.text instead of title and place the title text where I want it (with a bit of fiddli

[Matplotlib-users] Hiding labels in a legend?

2013-01-22 Thread David Erickson
Hello- Prior to version 1.2 of MPL I was able to hide labels for certain lines in the legend by setting the label=None when plotting a line, however in 1.2 it is now showing the legend entry and visibly printing "None". Is there a workaround to hide the label? Thanks, David -

Re: [Matplotlib-users] plotting 3d function

2013-01-22 Thread Benjamin Root
On Mon, Jan 21, 2013 at 8:06 PM, Pau wrote: > Hi, > > I am somehow new to matplotlib and I am trying to plot this function of x > ,y ,z > > F(x,y,z)= > 38244.74787*Pi*(x^2+y^2+z^2)^.125+1615.975261*Pi*z^2/(x^2+y^2+z^2)^.875-1292.780210*Pi*z^2/((x^2+y^2+z^2)^.875*(1+y^2/x^2))+1292.78*Pi*(x^2+y^2+z

[Matplotlib-users] BUG: RuntimeError: dictionary changed size during iteration

2013-01-22 Thread Massimiliano Costacurta
Hello everyone, in my program I'm encountering an error when calling the function axes.set_xticks (Matplotlib 1.2.0 on python 2.7-64 bit). It is really difficult for me to build a test case, because my program is really complex. Here is the error traceback: File "C:\Python27\Lib\site-packages