SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: charles b. <csb...@co...> - 2007年12月31日 22:21:52
I ran the attached python program under Ubuntu and Windows2000 with
different results. I expect the results to be similar.
Running under Ubuntu works great, and as expected.
Running under Windows2000 does not work well. Specifically, it works for
awhile, but then stops working and opens a small window with title:
wxPython: stdout/stderr, with many messages ultimately ending with the
root issue - Cannot_Open_Resource, Could not open facefile, in
_get_agg_font at line 301 of backend_agg.py.
On Windows2000 it runs for about 1 minute, then stops working and starts
delivering this series of error messages.
On Ubuntu, I can run it all day with no problems.
It might be easiest if you simply run the program under Linux and under
Windows and see if you note the same difference.
To run the program, maximize to expose the buttons and slider. Press
Start - you should see the plot flip back-and-forth between sin and cos
every 1 second. Move the slider to adjust the speed of flip.
I know that this program could be laid out better, etc - and that is not
my issue; this program is just a quick check of the capabilities of
matplotlib plot updates. I am interested in supporting real-time
plotting using matplotlib within a wxPython GUI. So, maybe you could
suggest an alternative way to write this program that works well on
Windows.
[More fundamentally, this program should work equivalently on Windows
and Linux. This may be a wxWidgets issue however, i.e. perhaps it
involves how graphical resources are obtained/available/reclaimed from
the underlying graphics subsystem of the OS. Perhaps the reclaim is much
more efficient under Linux and I need to do some explicit resource
reclaim under Windows (?).]
BTW, if you are interested, I can clean this snippet up a little and
maybe you would want to include it in your examples, as it demonstrates
another aspect of matplotlib use that may be of general interest (?). Of
course, it should first also work under Windows :).
Thanks for any replies.
From: Yongtao C. <yc...@co...> - 2008年01月01日 02:41:00
I had similar problem before. This is a bug in 0.91.1. It has been fixed in
svn. You can try updating.
Yongtao
On Dec 31, 2007 5:21 PM, charles bartlett <csb...@co...> wrote:
> I ran the attached python program under Ubuntu and Windows2000 with
> different results. I expect the results to be similar.
>
> Running under Ubuntu works great, and as expected.
>
> Running under Windows2000 does not work well. Specifically, it works for
> awhile, but then stops working and opens a small window with title:
> wxPython: stdout/stderr, with many messages ultimately ending with the
> root issue - Cannot_Open_Resource, Could not open facefile, in
> _get_agg_font at line 301 of backend_agg.py.
>
> On Windows2000 it runs for about 1 minute, then stops working and starts
> delivering this series of error messages.
>
> On Ubuntu, I can run it all day with no problems.
>
> It might be easiest if you simply run the program under Linux and under
> Windows and see if you note the same difference.
>
> To run the program, maximize to expose the buttons and slider. Press
> Start - you should see the plot flip back-and-forth between sin and cos
> every 1 second. Move the slider to adjust the speed of flip.
>
> I know that this program could be laid out better, etc - and that is not
> my issue; this program is just a quick check of the capabilities of
> matplotlib plot updates. I am interested in supporting real-time
> plotting using matplotlib within a wxPython GUI. So, maybe you could
> suggest an alternative way to write this program that works well on
> Windows.
>
> [More fundamentally, this program should work equivalently on Windows
> and Linux. This may be a wxWidgets issue however, i.e. perhaps it
> involves how graphical resources are obtained/available/reclaimed from
> the underlying graphics subsystem of the OS. Perhaps the reclaim is much
> more efficient under Linux and I need to do some explicit resource
> reclaim under Windows (?).]
>
> BTW, if you are interested, I can clean this snippet up a little and
> maybe you would want to include it in your examples, as it demonstrates
> another aspect of matplotlib use that may be of general interest (?). Of
> course, it should first also work under Windows :).
>
> Thanks for any replies.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /