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

2008-09-17 Thread Ted Drain
the "quick and easy" solutions have too many problems and aren't really maintainable. Ted > -Original Message- > From: Eric Firing [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2008 12:01 PM > To: Ted Drain > Cc: matplotlib-users@lists.sourcefo

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

Re: [Matplotlib-users] Toolbar in QT

2008-05-08 Thread Ted Drain
The toolbar is just a widget so you can do that the same way you show any other widget in Qt. Something along the lines of: - build a widget - add a layout - add the figure widget to the layout - add the toolbar to the layout - connect them tog

Re: [Matplotlib-users] PNG filesize

2008-03-21 Thread Ted Drain
I'd guess PNG won't get much smaller because you have a lot of different colored pixels. PNG compresses most when you have a sparser plot. I'd suggest that you try using JPG. It will compress the multi-colored portion of your plot way down. You may see a few artifacts if you look carefully at t

Re: [Matplotlib-users] Efficient scatter() w/ markers from plot()?

2008-03-20 Thread Ted Drain
lse in the future... Ted > -Original Message- > From: Manuel Metz [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 1:13 AM > To: Ted Drain > Cc: matplotlib-users@lists.sourceforge.net > Subject: Re: [Matplotlib-users] Efficient scatter() w/ markers from > plot()? >

[Matplotlib-users] Efficient scatter() w/ markers from plot()?

2008-03-19 Thread Ted Drain
I need to efficiently plot a set of x,y points where each point has a different color. I tried multiple calls to plot() with a single point each but that is way too slow. I switched to using scatter() and passing in a list of colors which works great. However, I'd really like to have the marker

Re: [Matplotlib-users] Create powerpoint slide and/or presentation from script?

2008-02-11 Thread Ted Drain
rs] Create powerpoint slide and/or > presentation from script? > > On Mon, 11 Feb 2008, Ted Drain apparently wrote: > > Does anyone know of a way to create a powerpoint slide from a plot? > > http://code.google.com/p/econpy/source/browse/trunk/u

[Matplotlib-users] Create powerpoint slide and/or presentation from script?

2008-02-11 Thread Ted Drain
Does anyone know of a way to create a powerpoint slide from a plot? I'm assuming that it's possible to have a script that savse a PNG of the plot and then use a VB (or preferably python) script to create a slide (or append that slide to an existing presentation). I've google'ed around but I'm

Re: [Matplotlib-users] Basemap:'snapback' on line crossing global plot edge

2007-08-02 Thread Ted Drain
I don't think so. We always manually check for horizontal and vertical axis crossings and split the line as many times as necessary. At 03:31 PM 8/2/2007, James Boyle wrote: >This is probably for Jeff but maybe someone else has an answer. >If I plot a satellite orbit on the globe when the ground

Re: [Matplotlib-users] AttributeError: LineCollection instance has no attribute 'get_lines'

2007-04-10 Thread Ted Drain
John, One of the problems we've had is trying to design an auto-scaling algorithm that works well with any type date format since the date strings can be so large horizontally. I believe that having the draw time elements be able to query the renderer for things would help this out tremendousl

Re: [Matplotlib-users] Replotting inside a while loop

2007-01-23 Thread Ted Drain
See the docs on interactive mode... http://matplotlib.sourceforge.net/interactive.html At 10:39 AM 1/23/2007, Tommy Grav wrote: >On Jan 23, 2007, at 1:28 PM, Darren Dale wrote: > > > On Tuesday 23 January 2007 13:20, Tommy Grav wrote: > >> I have a program that enters a while loop, calculates a b

Re: [Matplotlib-users] spy ignores negative values?

2006-11-22 Thread Ted Drain
John, One small note - we've been bitten in the past by doing: x != 0 This assumes a numeric (int/float) quantity. If someone substitutes a different type that looks like a number, this will most likely fail. Python has a __nonzero__ method which can be used by calling 'not' or 'bool()':

Re: [Matplotlib-users] 2D Intensity Plots of Titan

2006-07-12 Thread Ted Drain
Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >___ >Matplotlib-users mailing list >Matplotlib-users@lists.sourceforge.net >https