From: Kirill L. <ki...@la...> - 2004-06-08 02:17:27
|
Hello, I am a newbie to Matplotlib and all Python numeric stuff, so sorry if it is a FAQ. I've installed NumPy 23.1, SciPy 0.3 and Matplotlib 54.1. Python is 2.3.4. The problem I have is that none of backends works properly. TkAgg -- works fine from console, but if ran from IDLE or PythonWin it creates a window border only, does not populate it with plot. If I try to move the plot window whole python session crashes with generic runtime error message (windows error message box with a single Ok button). WX/WXAgg -- both don't work from console -- show empty window, cursor turns in hourglass when it is over plot window. From GUI app (IDLE/PythonWin) it seems to work at first glance -- plot gets created, but the plot window can not be closed with either Alt-F4 or mouse. It just does not react on close command. Moreover, python objects corresponding to window seems to get destroyed when I try to close window, because if I do few plots commands without trying to close the window, new plots appear in first window, however as soon as I try to close the window (it won't close, remember?), new plots will open new window. That second window can be closed, but first one still remain unclosable. GTK/GTKAgg -- can't really try that one, because it requires compiling GTK, and we don't have compiler yet. Any ideas how that can be fixed, work arounded, debugged? I am pretty comfortable with debugging Python code, but as I said I don't have C compiler yet, so can't debug extensions. This behavior observed on brand new computer with freshly installed Win XP. The same behavior I am observing on my a bit old Win XP laptop. --Kirill |
From: Barry D. <bl...@ad...> - 2004-06-08 02:50:44
|
Kirill, I've recently returned to Matplotlib and Scipy (and happy to be back!!!). I had the same problem and solved it by putting the lines import matplotlib matplotlib.use('WXAgg') before the usual import from matplotlib.matlab import * This worked for all of the example code. If you don't have the examples, which are not included in the Windows installer, go back to the download page again and grab the .zip file. This includes numerous examples that you should be able to run with the two lines mentioned above. Hope this helps. Barry Drake --- Kirill Lapshin wrote: > Hello, > > I am a newbie to Matplotlib and all Python numeric > stuff, so sorry if it > is a FAQ. > > I've installed NumPy 23.1, SciPy 0.3 and Matplotlib > 54.1. Python is > 2.3.4. The problem I have is that none of backends > works properly. > > TkAgg -- works fine from console, but if ran from > IDLE or PythonWin it > creates a window border only, does not populate it > with plot. If I try > to move the plot window whole python session crashes > with generic > runtime error message (windows error message box > with a single Ok button). > > WX/WXAgg -- both don't work from console -- show > empty window, cursor > turns in hourglass when it is over plot window. From > GUI app > (IDLE/PythonWin) it seems to work at first glance -- > plot gets created, > but the plot window can not be closed with either > Alt-F4 or mouse. It > just does not react on close command. Moreover, > python objects > corresponding to window seems to get destroyed when > I try to close > window, because if I do few plots commands without > trying to close the > window, new plots appear in first window, however as > soon as I try to > close the window (it won't close, remember?), new > plots will open new > window. That second window can be closed, but first > one still remain > unclosable. > > GTK/GTKAgg -- can't really try that one, because it > requires compiling > GTK, and we don't have compiler yet. > > > Any ideas how that can be fixed, work arounded, > debugged? I am pretty > comfortable with debugging Python code, but as I > said I don't have C > compiler yet, so can't debug extensions. > > This behavior observed on brand new computer with > freshly installed Win > XP. The same behavior I am observing on my a bit old > Win XP laptop. > > --Kirill > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source > Desktop Event. > GNOME Users and Developers European Conference, > 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Kirill L. <ki...@la...> - 2004-06-08 03:10:12
|
Barry Drake wrote: >I've recently returned to Matplotlib and Scipy (and >happy to be back!!!). I had the same problem and >solved it by putting the lines > >import matplotlib >matplotlib.use('WXAgg') > >before the usual import > >from matplotlib.matlab import * > > Barry, thanks a lot for your input, however I did try WXAgg, as well as WX and TkAgg and none of them works for me. One thing I forgot to mention in my previous e-mail though. I am using interactive mode. I just tried the same experiment in non-interactive mode, and WX works fine. However we are mostly interested in interactive mode, because we mostly use plotting for debugging purposes. --Kirill |
From: Todd M. <jm...@st...> - 2004-06-08 13:04:43
|
On Mon, 2004-06-07 at 22:17, Kirill Lapshin wrote: > TkAgg -- works fine from console, but if ran from IDLE or PythonWin it > creates a window border only, does not populate it with plot. If I try > to move the plot window whole python session crashes with generic > runtime error message (windows error message box with a single Ok button). Try running with "idle -n" rather than just "idle" by changing the properties of a copy of the idle shortcut. TkAgg is know to work with: python idle -n IPython TkAgg is know not to work with: SciTE pythonw Pythonwin idle Regards, Todd Miller |