Re: [Matplotlib-users] polar

2008-11-25 Thread Drain, Theodore R
Michael, I think the issue is that there is no Unicode in the script that was attached - it's just a simple polar call so the user isn't really Unicode". I think Unicode is starting to creep into the source in various places - we just had a user point out that negative numbers are using a normal

Re: [Matplotlib-users] polar

2008-11-25 Thread Drain, Theodore R
OK - Thanks for the explanation. Sorry you had to type such a long response to my short little complaint :) > -Original Message- > From: Michael Droettboom [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 25, 2008 1:06 PM > To: Drain, Theodore R > Cc: m

Re: [Matplotlib-users] Strange resize behaviour for qt backend

2009-05-28 Thread Drain, Theodore R
Ole wrote: My interpretation of this is: - the FigureCanvas gets the first resize event and repaints itself (*) - during the repaint it gets the second resize event - since it is already in the repaint process, the second request is ignored (or queued) and returns immediately - this leads to the p

Re: [Matplotlib-users] Non-X11 fallback on import

2009-06-01 Thread Drain, Theodore R
FYI I just went through this w/ an application of ours. There is no easy way to handle this. You can do this: Display* disp = XOpenDisplay( 0 ); if ( ! disp ) { // no DISPLAY variable is set - no x connection } However, if the DISPLAY variable is set but doesn't point to a usable x-server

[Matplotlib-users] Update legend when lines change color?

2013-08-01 Thread Drain, Theodore R (392P)
I have an application where the user can edit line colors and other attributes after the plot is drawn. The artists update just fine but the legend doesn't change. >From what I can see in the legend code, it doesn't seem like there is any >mechanism in place for doing this. Does anyone have a

[Matplotlib-users] Splitting arrays into chunks that satisfy a condition?

2013-08-02 Thread Drain, Theodore R (392P)
I have three arrays (x,y,z). I want plot x vs y and draw the line segments differently depending on whether or not z is positive or negative. So I'm trying to split the x,y arrays into chunks depending on the value of z. Using numpy.where, I can find the indeces in z that satisfy a condition

Re: [Matplotlib-users] Splitting arrays into chunks that satisfy a condition?

2013-08-02 Thread Drain, Theodore R (392P)
z < 0)] xpos = [x[slice(*reg)] for reg in contiguous_regions(z >= 0)] Thanks, Alex On Fri, Aug 2, 2013 at 10:45 AM, Benjamin Root mailto:ben.r...@ou.edu>> wrote: On Fri, Aug 2, 2013 at 1:36 PM, Drain, Theodore R (392P) mailto:theodore.r.dr...@jpl.nasa.gov>> wrote: I have three

Re: [Matplotlib-users] Update legend when lines change color?

2013-08-02 Thread Drain, Theodore R (392P)
PM, Drain, Theodore R (392P) wrote: > I have an application where the user can edit line colors and other > attributes after the plot is drawn. The artists update just fine but the > legend doesn't change. > >>From what I can see in the legend code, it doesn't seem like

Re: [Matplotlib-users] Drawing Error Ellipses

2009-10-28 Thread Drain, Theodore R (343P)
We've had several users come to the same (incorrect) conclusion so I'd have to say it's not a rare occurrence for those comments to be misunderstood. Perhaps adding "total" in front of length would help. width- The total width of the ellipse > -Original Message- > From: Michael Dr

[Matplotlib-users] Postscript backend produces different file permission than png backend?

2010-04-13 Thread Drain, Theodore R (343P)
On Linux: import pylab as p p.plot( [1,2,3] ) p.savefig( 'test.ps' ) p.savefig( 'test.png' ) ls -l test.* -rw-r--r-- 1 --- - 17236 Apr 13 10:32 test.png -rw--- 1 --- - 8640 Apr 13 10:32 test.ps This is with a umask of 022. It looks to me like this is caused by the ps backend cr

Re: [Matplotlib-users] [ploting data] Live data

2011-12-13 Thread Drain, Theodore R (343P)
Perhaps I'm missing something, but why not use QTimer? You can't really every call sleep in a single threaded gui (for reasons you've encountered). If you need to poll something, create a QTimer for 2 seconds and have it call a measurement function to update the data. You shouldn't need any p

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Drain, Theodore R (343P)
Isn't that what the unit system is for? It allows users to use whatever objects they want and register conversions to/from MPL types. If Decimal is a common use-case, then perhaps MPL should provide those converters but the user would (and probably should) still need to activate them. ___

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 ___