Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Jack Sankey
well it hasn't caused me any crashes yet so far as I can tell. Other naughty things I do cause crashes, though. On Thu, Aug 21, 2008 at 8:03 PM, Ryan May <[EMAIL PROTECTED]> wrote: > On Thu, Aug 21, 2008 at 4:58 PM, Darren Dale <[EMAIL PROTECTED]> wrote: > >> On Thursday 21 August 2008 17:36:50 E

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Ryan May
On Thu, Aug 21, 2008 at 4:58 PM, Darren Dale <[EMAIL PROTECTED]> wrote: > On Thursday 21 August 2008 17:36:50 Eric Firing wrote:> Jack Sankey wrote: > > > pylab.gcf().clear(); pylab.show() # nothing happens > > > > With interactive mode off, in a script, show() should never be called > > more than

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Darren Dale
On Thursday 21 August 2008 17:36:50 Eric Firing wrote: > Jack Sankey wrote: > > pylab.gcf().clear(); pylab.show() # nothing happens > > With interactive mode off, in a script, show() should never be called > more than once; it should be the last plot-related line of the script. I thought we suppor

Re: [Matplotlib-users] Automatically make room for my tick labels without GUI ?

2008-08-21 Thread Jae-Joon Lee
While I don't know much about how callbacks work in matplotlib, looking at the source code of figure.draw() method, it seems that call_back functions connected with the "draw_event" are called after a figure is drawn. Therefore, you need a second draw. My guess is that this second draw is somehow a

[Matplotlib-users] clip text with a Rectangle

2008-08-21 Thread Ben Axelrod
I want to draw some text and have it clipped by another rectangle I draw. The text should only display inside the box. I have some sample code that seems like it should work, but obviously there is something wrong because the text does not display at all. Any help? import matplotlib.pyplot a

Re: [Matplotlib-users] Generating an isosurface (mesh) out of a 3d array [SEC=UNCLASSIFIED]

2008-08-21 Thread Ryan May
On Thu, Aug 21, 2008 at 2:36 PM, Scott Collis <[EMAIL PROTECTED]> wrote: > Morning all! > I have some data (basically weather data) that I want to create some nice > graphics (mainly PR type images) out of. My initial idea is to generate > meshes from the data and import them into povray (ray tra

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Jack Sankey
Thanks Eric, I may be doing things a little bit weird since I've been with matplotlib for many years. I did two things that fixed my problem: I wiped python25 out completely and install enthought (with an older pylab). During the wipe I noticed an extra pythonw running in the task manager that I h

Re: [Matplotlib-users] I'm wrecked

2008-08-21 Thread Eric Firing
Jack Sankey wrote: > I'm not sure if this is a matplotlib issue or what, but all of a sudden > I was not able to do gca() or gcf() correctly. > > A simple command-line on pyshell (using wxAgg backend) went like this: I'm not familiar with pyshell, but evidently it is turning interactive mode on,

[Matplotlib-users] Generating an isosurface (mesh) out of a 3d array [SEC=UNCLASSIFIED]

2008-08-21 Thread Scott Collis
Morning all! I have some data (basically weather data) that I want to create some nice graphics (mainly PR type images) out of. My initial idea is to generate meshes from the data and import them into povray (ray tracing utility). Now matplotlib easily generates contours, is there a utility out the

[Matplotlib-users] I'm wrecked

2008-08-21 Thread Jack Sankey
I'm not sure if this is a matplotlib issue or what, but all of a sudden I was not able to do gca() or gcf() correctly. A simple command-line on pyshell (using wxAgg backend) went like this: import pylab pylab.plot([1,2,1]) # figure pops up pylab.gca().clear(); pylab.show() # nothing happens pylab

Re: [Matplotlib-users] word wrap

2008-08-21 Thread Jae-Joon Lee
Hi, I guess the extent of the rendered text is not known until the figure is drawn. The link below would be helpful. http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels So. it is possible to know the text length, but you need to wait

[Matplotlib-users] word wrap

2008-08-21 Thread Ben Axelrod
I am trying to draw some text inside of a rectangle. The text can be longer than the rectangle, so I would like to wrap the text. I doubt MPL has this kind of functionality built in, so I am expecting to write it myself. I think I read somewhere that it is not possible to get the length of tex

[Matplotlib-users] Automatically make room for my tick labels without GUI ?

2008-08-21 Thread Mathieu Leplatre
Hi all, I am trying to automatically adjust margins with the SVG backend. The FAQ example : http://matplotlib.sourceforge.net/doc/html/faq/howto_faq.html#how-do-i-automatically-make-room-for-my-tick-labels only works with GUI backends. May it come from get_window_extent() call ? How could I modif

[Matplotlib-users] How to end manually adding contour labels: Solved

2008-08-21 Thread Mark Bakker
Dear list - David Kaplan added a very cool new feature to add labels to a contour plots manually. Check out the ginput_manual_clabel.py example. I posted a question about this before, because I couldn't figure out how to end the manual selection of label positions. The doc string (and the examp

Re: [Matplotlib-users] import pylab produces rounding error

2008-08-21 Thread Angela Rivera Campos
Hello again, I'm really sorry for not having written for such a long time, but I've been on vacation. I've been trying to figure out what is happening with the import pylab thing and why it makes the rounding to my data. I've found that the problem might be related with some conflict between t