[Matplotlib-users] hatching problem

2010-02-09 Thread Tomasz Koziara
Dear Users/Developers I just installed version 0.99.1.1 since in my previous version (0.98) I had problems with hatching. It seems though that the same problems persist in the current version. The attached files reproduce the problem (a data file and a python short script). Note that

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-09 Thread Stephan Markus
I already had my destroy() method look like this: def destroy(self): self.f.clf() Tix.Frame.destroy(self) self.toolbar.destroy() self.canvas._tkcanvas.destroy() But it makes no difference. Stephan Am 08.02.2010 17:15, schrieb Michael Droettboom: Have you

Re: [Matplotlib-users] hatching problem

2010-02-09 Thread Jae-Joon Lee
I cannot reproduce it with Agg backend and ps backend. I tried both svn version and 0.99 maint. version. So, maybe this is a bug in mac os X backend? Do you see a same problem with the ps output? If so, can you post your ouput ps file? Regards, -JJ On Mon, Feb 8, 2010 at 3:26 PM, Tomasz

[Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Wayne Watson
I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program. In IDLE, the shell window stops and one must exit the window. I'd appreciate it if someone could take any examples from

[Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Lee Boger
Windows XP Professional with Python 2.5 installed (pywin32 build 210) - came with dSPACE software package Downloaded and installed matplotlib-0.99.1.win32-py2.5.exe from sourceforge.net Downloaded and installed numpy-1.4.0-win32-superpack-python2.5.exe from sourceforge.net Executing the

Re: [Matplotlib-users] Figure.draw_artist() bug with Text

2010-02-09 Thread Ben Axelrod
I see. But why would I need to set the figure manually when I am drawing with a figure? Is it ever the case where you set one figure, but draw with another? For example: textartist.set_figure(fig1) fig2.draw_artist(textartist) Also, other atists don't fail in this manner if I don't use

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Wayne Watson
Version of Python would help too. I'm using 2.5. On 2/9/2010 8:06 AM, Wayne Watson wrote: I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program. In IDLE, the shell window stops and

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file execution (click on file name), it seems to tie up the executing program.  In IDLE, the shell window stops and one must

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Ben Axelrod
Maybe instead of plot.show() you should do something like: plot.draw() raw_input('Press ENTER to exit') Personally, I also use IDLE on Windows XP to edit my matplotlib files. However, I never execute in IDLE. I simply double click the file in windows explorer. -Ben -Original

[Matplotlib-users] his problems...

2010-02-09 Thread Nick Schurch
HI all, I've been using matplotlip for a while now but mainly for line plots, scatter plots and the odd dendrogram. I recently tried plotting a histogram (of a binomial function) and encountered a problem. So I though I'd try the extremely simple example set on the front of the matplotlib

Re: [Matplotlib-users] Figure.draw_artist() bug with Text

2010-02-09 Thread Jae-Joon Lee
Figure.draw_artist is just a convenience function. def draw_artist(self, a): draw :class:`matplotlib.artist.Artist` instance *a* only -- this is available only after the figure is drawn assert self._cachedRenderer is not None

Re: [Matplotlib-users] trying to Copy plot from one MplWidget canvas to another

2010-02-09 Thread Jae-Joon Lee
Copying a matplotlib canvas (or a figure, or an axes) is not easy. You cannot just rebind it. You need to copy all the hierarchy of underlying artists. Also the attributes of artists need to be adjusted accordingly. And best option in my opinion is just to create another canvas using the code that

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Wayne Watson
Thanks for the clarification. I'm really new to this, and do not know of interactive mode. I presume there's a command to turn it off and on, and possibly an example on how to do it. Is this method of operation with show() mentioned anywhere? The unfortunate present use of show() is that it

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Wayne Watson
Thanks. I'll consider it. See my post to John Hunter moments ago as to why I must use IDLE. Basically, the users are not at all familiar with Python, and historically the us has been that way for 3-4 years. On 2/9/2010 8:20 AM, Ben Axelrod wrote: Maybe instead of plot.show() you should do

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 11:36 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Thanks for the clarification. I'm really new to this, and do not know of interactive mode. I presume there's a command to turn it off and on, and possibly an example on how to do it. Is this method of operation

Re: [Matplotlib-users] Verifying the Use of show()? Win XP

2010-02-09 Thread Wayne Watson
Thanks. Completely missed it. (P.S. Reply All +corrected mail filter.) On 2/9/2010 8:18 AM, John Hunter wrote: On Tue, Feb 9, 2010 at 10:06 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: I'm sure not making much progress on understanding show(). When used in XP in IDLE or by file

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Christoph Gohlke
Change the last line to pylab.show() and it should work. Anyway, this example should not crash the interpreter. I can reproduce the crash on Python 2.4, 2.5, and 2.6 (32 and 64 bit) on Windows with mpl 0.99.1 but not on Ubuntu 9.1 with mpl 0.99.0. The shortest example that crashes is: python -c

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Eric Firing
Lee Boger wrote: Windows XP Professional with Python 2.5 installed (pywin32 build 210) - came with dSPACE software package Downloaded and installed matplotlib-0.99.1.win32-py2.5.exe from sourceforge.net Downloaded and installed numpy-1.4.0-win32-superpack-python2.5.exe from

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Christoph Gohlke
Use pylab.savefig('log_plot'). Also saving the figure to file and showing it interactively in the same script might involve switching backends, which might not work as expected. It is advisable to downgrade to numpy 1.3. -- Christoph On 2/9/2010 10:44 AM, Lee Boger wrote: Although, if I

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Eric Firing
Lee Boger wrote: Thanks for the quick feedback. I changed the last line from figure.figure.show() to pyplot.show() and it worked without crashing the interpreter. However, if I close the figure then re-run the script, a new figure pops up but it doesn't have any data plotted. Interpreter

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Lee Boger
Thanks for your help. I'll look into ipython. Lee Eric Firing efir...@hawaii.edu 02/09/2010 02:31 PM To Lee Boger boger_...@cat.com, matplotlib-users matplotlib-users@lists.sourceforge.net cc Subject Re: [Matplotlib-users] Runtime Error - Need Advice Caterpillar: Confidential Green

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Christoph Gohlke
I am not sure what's going on. The script you posted imports pylab in the first line. It should be defined. The scrit works just fine after the proposed changes, even from Pythonwin. Did you completely quit Pythonwin after the crashes and made sure no corrupted python instance was left running?

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Lee Boger
I tried something that seems to work consistently - I get the correct plot figure and the correct log_plot.png file created everytime I run the script. From the Start menu, I chose All Programs-Python2.5-IDLE (Python GUI) instead of All Programs-Python2.5-PythonWin, which creates the Tk Python

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Lee Boger
Python version 2.5.1, Tk version 8.4, IDLE version 1.2.1 Lee Christoph Gohlke cgoh...@uci.edu 02/09/2010 03:08 PM To matplotlib-users matplotlib-users@lists.sourceforge.net cc Subject Re: [Matplotlib-users] Runtime Error - Need Advice Caterpillar: Confidential Green Retain Until:

Re: [Matplotlib-users] Surface Plot

2010-02-09 Thread Ted Kord
Paul The example works fine and was quite instructive. Thx. Ted On 8 February 2010 21:41, phob...@geosyntec.com wrote: Ted, How does this example run for you? http://matplotlib.sourceforge.net/examples/pylab_examples/griddata_demo.html *From:* Ted Kord

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Christoph Gohlke
I can now reproduce this. It seems the same old problem that PythonWin can not reliably run matplotlib because successive runs of the script use the same interpreter. Ipython should work. Append pylab.close() to your script; at least it will not crash on the second run. -- Christoph On 2/9/2010

Re: [Matplotlib-users] hatching problem

2010-02-09 Thread Michiel de Hoon
I wasn't able to replicate this problem with the Mac OS X backend with matplotlib 0.99.1.1. Both the on-screen figure and the ps output look fine. --Michiel. --- On Tue, 2/9/10, Jae-Joon Lee lee.j.j...@gmail.com wrote: From: Jae-Joon Lee lee.j.j...@gmail.com Subject: Re: [Matplotlib-users]

[Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-09 Thread Wayne Watson
Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore and a pretty minimal introduction. In the first 10 or so hits ther's a blog and

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-09 Thread C M
sierra_mtnv...@sbcglobal.net wrote: Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore and a pretty minimal introduction. In the

Re: [Matplotlib-users] Runtime Error - Need Advice

2010-02-09 Thread Christoph Gohlke
To close this thread: the PyEval_RestoreThread crash is a known bug in the tkagg backend on Windows. See line 375 of backend_tkagg.py: def show(self): this function doesn't segfault but causes the PyEval_RestoreThread: NULL state bug on win32 -- Christoph

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-09 Thread Gökhan Sever
On Tue, Feb 9, 2010 at 8:15 PM, Wayne Watson sierra_mtnv...@sbcglobal.netwrote: Subject is the question. As I see it, it's useful to know MatLab. A simple query with matplotlib tutorial shows a number of hits. The first, reference to v0.99.a documentation barely qualifies. Examples galore