SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S



1
(22)
2
(17)
3
(21)
4
(7)
5
(7)
6
(17)
7
(8)
8
(8)
9
(33)
10
(11)
11
12
(2)
13
(11)
14
(29)
15
(13)
16
(13)
17
(3)
18
(2)
19
(3)
20
(7)
21
(17)
22
(12)
23
(19)
24
(19)
25
(14)
26
(5)
27
(25)
28
(13)




Showing 25 results of 25

From: Orion P. <or...@co...> - 2006年02月27日 21:57:12
Christopher Barker wrote:
> 
> Just make it clear:
> 
> 1) The binary is build so that it will work with all three
> 
Yup. Or at least, that is the goal.
> 2) The question is what is defined as a dependency when you install it, 
> and what is set as default in matplotlibrc.
> 
> If so, I'd stick with Numeric as the default. Those of us on the 
> Bleeding Edge of Numpy can still use it, but people's older code should 
> "just work"
Will do. Thanks!
-- 
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com
From: Vincent Favre-N. <vi...@us...> - 2006年02月27日 21:53:07
	Hi,
> I will endeavor to switch matplotlib to a subversion repository (newly
> available courtesy of SourceForge) tomorrow afternoon/evening
> (US/Pacific time) unless I hear pleas from developers with unmerged
> changes.
>
> I believe the new command for anonymous checkout of matplotlib will be:
> svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>
> I'll post the developer checkout command on the matplotlib-devel list
> when I figure it out.
 It's actually the same command. Only, when committing changes you have t=
o=20
supply username and password using, e.g. --username and --password options.=
=20
But a subversion GUI (I'm happy with esvn for linux & windows) will do that=
=20
for you.
 What's really nice, there are no more delay between developers and=20
anonymous access.
	Vincent
=2D-=20
Vincent Favre-Nicolin
Universit=E9 Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net
From: Christopher B. <Chr...@no...> - 2006年02月27日 21:52:49
or...@co... wrote:
> I'm the maintainer for python-matplotlib in Fedora Extras.
Thanks for doing that, by the way.
 > Is numpy fully functional
I think not quite, and it does change a bit with each release.
> the way of the future
Yes, it is the way of the future, but the future is not quite now.
> I have python-numeric as the required engine at runtime.
Just make it clear:
1) The binary is build so that it will work with all three
2) The question is what is defined as a dependency when you install it, 
and what is set as default in matplotlibrc.
If so, I'd stick with Numeric as the default. Those of us on the 
Bleeding Edge of Numpy can still use it, but people's older code should 
"just work"
As a rule of thumb, I'd wait until Travis calls numpy version 1.0 before 
changing the default.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Andrew S. <str...@as...> - 2006年02月27日 20:30:52
Hi all,
I will endeavor to switch matplotlib to a subversion repository (newly
available courtesy of SourceForge) tomorrow afternoon/evening
(US/Pacific time) unless I hear pleas from developers with unmerged changes.
I believe the new command for anonymous checkout of matplotlib will be:
svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
I'll post the developer checkout command on the matplotlib-devel list
when I figure it out.
Cheers!
Andrew
From: Orion P. <or...@co...> - 2006年02月27日 17:39:43
John Hunter wrote:
> 
> w/o addressing your original question (perhaps someone else has an
> opinion there) I suggest you wait until the 0.87.1 bug fix release
> because there is a known problem with 0.87 (images are broken).
When will this be?
-- 
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com
From: Samuel M. S. <sm...@sa...> - 2006年02月27日 17:34:18
Onsi Fakhouri had the same problem and found a workaround. But I 
appreciate your help
the WX_AGG environment variable fixed one problem and your 
information on the linking tool should prove useful
to verify that things are getting build correctly.
See my post today titled "Workaround for 0.87 WXAgg bug".
Apparently according to Onsi
 there is a bug in the C code, memory is not being allocated correctly.
On 27 Feb, 2006, at 10:24, Christopher Barker wrote:
> Sam,
>
> I wish I could be more help,. but maybe I can help steer your 
> efforts bit:
>
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ 
>> site-packages/matplotlib/backends/backend_wxagg.py in draw(self, 
>> repaint)
>> 60 FigureCanvasAgg.draw(self)
>> 61
>> ---> 62 self.bitmap = _convert_agg_to_wx_bitmap 
>> (self.get_renderer(), None)
>> 63 if repaint:
>> 64 self.gui_repaint()
>> MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create 
>> the wx.Bitmap
>
> This sure looks like your error occurs when MPL is trying to 
> convert from the wxagg internal image storage to a wxBitmap. As a 
> test, I'd make sure the pure Agg back-end works fine (have it 
> create a PNG). If so then font,s etc have nothing to do withyour 
> trouble...it's all about the agg -> wx conversion. that's why I 
> thought it could be caused by liniking to the wrong version of wx.
>
> to make sure you have linked to the right version, you can use:
>
> otool -L
>
> on the wxagg libs that MPL builds. That should tell you which wx 
> libs you've actuallylinked to.
>
>
> With any luck, I'll have a chance to try to get this working on my 
> system this week, and then maybe I'll be more help.
>
> -Chris
>
>
>
>
>
>
> -- 
> Christopher Barker, Ph.D.
> Oceanographer
> 		
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
From: Christopher B. <Chr...@no...> - 2006年02月27日 17:28:40
> On 2006年2月25日, Ryan Krauss wrote:
>> Can anyone recommend a python package for doing this kind of animation?
If you want to use wxPython, then wx.lib.floatcanvas would make this 
pretty easy.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Christopher B. <Chr...@no...> - 2006年02月27日 17:25:01
Sam,
I wish I could be more help,. but maybe I can help steer your efforts bit:
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py 
> in draw(self, repaint)
> 60 FigureCanvasAgg.draw(self)
> 61
> ---> 62 self.bitmap = 
> _convert_agg_to_wx_bitmap(self.get_renderer(), None)
> 63 if repaint:
> 64 self.gui_repaint()
> 
> MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
> wx.Bitmap
This sure looks like your error occurs when MPL is trying to convert 
from the wxagg internal image storage to a wxBitmap. As a test, I'd make 
sure the pure Agg back-end works fine (have it create a PNG). If so then 
font,s etc have nothing to do withyour trouble...it's all about the agg 
-> wx conversion. that's why I thought it could be caused by liniking to 
the wrong version of wx.
to make sure you have linked to the right version, you can use:
otool -L
on the wxagg libs that MPL builds. That should tell you which wx libs 
you've actuallylinked to.
With any luck, I'll have a chance to try to get this working on my 
system this week, and then maybe I'll be more help.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Jon F. <jo...@dr...> - 2006年02月27日 17:24:06
I thought for a bit longer and found something that works just right:
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import matplotlib
matplotlib.use('GTK')
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar
from Numeric import *
def close_app(widget, data=None):
 """ A call back if the close window control is clicked."""
 print "delete_event being handled" 
 gtk.main_quit() # gracefully end the application.
if __name__ == "__main__": 
 main_window = gtk.Window(gtk.WINDOW_TOPLEVEL)
 # Connect the delete_event signal to a function to close the application.
 main_window.connect( "delete_event", close_app)
 main_window.show() 
 figure = Figure(figsize=(6,4), dpi=72) 
 axes = figure.add_subplot(111)
 # This calls the imshow routine and builds an Axes instance for us.
 axes.imshow( array([[2,4,5,5],[5,6,7,8],[7,6,5,7]]))
 main_window.set_border_width(10)
 
 figure_canvas = FigureCanvasGTK(figure)
 nav_tool = NavigationToolbar(figure_canvas,main_window)
 nav_tool.show()
 figure_canvas.show()
 
 vbox = gtk.VBox()
 vbox.show()
 vbox.pack_start(figure_canvas)
 vbox.pack_start(nav_tool, False, False)
 
 main_window.add(vbox) 
 gtk.main() 
 
On Mon, Feb 27, 2006 at 11:47:57AM -0500, Jon Fox wrote:
> I'm trying to embed functionality similar to the pylab.imshow() feature
> in a gtk application, but my bony head can't find an example program where someone 
> does this explicitly, and hunting in the pylab interface has been rather
> frustrating. 
> 
> I'm using the the more typical x-y plots in gtk apps aleady (thank you
> example writers), but the ability to show an colormapped 2d image with a
> color bar would be really great.
> 
> Any takers?
> 
> -- Jon
> 
> -- 
> .*. Dr. Jon R. Fox
> ..* http://www.drfox.com
> *** jo...@dr...
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
-- 
.*. Dr. Jon R. Fox
..* http://www.drfox.com
*** jo...@dr...
From: Samuel M. S. <sm...@sa...> - 2006年02月27日 17:20:07
Onsi,
Thank you very much
This work around worked for me. I haven't tested everything but I can 
make a plot successfully now with WXAgg.
Have you reported this bug?
Sam
On 26 Feb, 2006, at 17:31, Onsi Fakhouri wrote:
> Hi Samuel,
>
> I was looking through the matplotlib-users mailing list archive and 
> came across your 2006年02月25日 post. I've been having the same 
> problem and after prodding around, seem to have come up with a 
> temporary workaround.
>
> If you look in the
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ 
> site-packages/matplotlib/backends/backend_wxagg.py
>
> file you'll see that there are two methods that can be used to run 
> convert_agg_to_wx_bitmap. By default matplotlib tries to import 
> _wxagg and use the _wxagg.convert_agg_to_wx_bitmap version of this 
> method.
>
> This version is a compiled C++ shared library. The C++ code is a 
> little cryptic, but it basically looks like the code is failing to 
> allocate memory for the bitmap object.
>
> Fortunately, backend_wxagg.py includes a python alternative called 
> _py_convert_agg_to_wx_bitmap. This uses python code to perform the 
> agg->wx.bitmap conversion which, being written in python and not in 
> C++, is slower (the speed's fine in my opinion) -- but actually works.
>
> So for, now, a temporary solution until the C++ issue is resolved 
> is to get backend_wxagg.py to use the python versions of the 
> convert method. To do this replace the following code in 
> backend_wxagg.py at line 228:
>
> # try to load the WXAgg accelerator
>
> try:
> import _wxagg
> except ImportError:
> _wxagg = None
>
> # if it's present, use it
> _use_accelerator(True)
>
> with this:
>
> # try to load the WXAgg accelerator
> try:
> import _wxagg
> except ImportError:
> _wxagg = None
> #It imported without any problems --- but it doesn't actually work!
> _wxagg=None
>
> # if it's present, use it
> _use_accelerator(True)
>
>
> Let me know if this helps. It seems to have done the trick for 
> me. But I haven't tested it too extensively.
>
> Take care,
>
> Onsi
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
From: Jon F. <jo...@dr...> - 2006年02月27日 16:48:03
I'm trying to embed functionality similar to the pylab.imshow() feature
in a gtk application, but my bony head can't find an example program where someone 
does this explicitly, and hunting in the pylab interface has been rather
frustrating. 
I'm using the the more typical x-y plots in gtk apps aleady (thank you
example writers), but the ability to show an colormapped 2d image with a
color bar would be really great.
Any takers?
-- Jon
-- 
.*. Dr. Jon R. Fox
..* http://www.drfox.com
*** jo...@dr...
From: John H. <jdh...@ac...> - 2006年02月27日 16:25:35
>>>>> "orion" == orion <or...@co...> writes:
 orion> I'm the maintainer for python-matplotlib in Fedora Extras.
 orion> I'm getting ready to build 0.87 and am looking for
 orion> suggestions about what numeric engine to make standard.
 orion> I'm building against numpy, Numeric, and numarry, but I
 orion> don't want to have it Require: all three at run time. Is
 orion> numpy fully functional and the way of the future and should
 orion> I just list that? Currently (0.86) I have python-numeric
 orion> as the required engine at runtime.
w/o addressing your original question (perhaps someone else has an
opinion there) I suggest you wait until the 0.87.1 bug fix release
because there is a known problem with 0.87 (images are broken).
JDH
From: <or...@co...> - 2006年02月27日 16:08:31
I'm the maintainer for python-matplotlib in Fedora Extras. I'm getting
ready to build 0.87 and am looking for suggestions about what numeric
engine to make standard. I'm building against numpy, Numeric, and
numarry, but I don't want to have it Require: all three at run time. Is
numpy fully functional and the way of the future and should I just list
that? Currently (0.86) I have python-numeric as the required engine at
runtime.
Thanks!
- Orion Poplawski
From: John H. <jdh...@ac...> - 2006年02月27日 15:18:38
>>>>> "Chris" == Chris Shen <chr...@ai...> writes:
 Chris> Thanks Jeff for quick input. It is working well for me now.
 Chris> For the examples, I download from the link on the homepage
 Chris> which still points to
 Chris> http://matplotlib.sourceforge.net/matplotlib_examples_0.83.2.zip
The website was a bit out of date but has been recently updated. The
examples link now points to a recent set of examples consistent with
0.87.
JDH
From: Chris S. <chr...@ai...> - 2006年02月27日 14:46:19
> Chris: Contour now returns a single object, so replace all your calls 
> with something like
> 
> CS = contour(X,Y,Z)
> 
> -Jeff
> 
> P.S. You must not have updated the examples, because the ones that come 
> with maplotlib 0.87 do work.
> 
Thanks Jeff for quick input. It is working well for me now.
For the examples, I download from the link on the homepage which still 
points to http://matplotlib.sourceforge.net/matplotlib_examples_0.83.2.zip
Best regards,
Chris
From: John H. <jdh...@ac...> - 2006年02月27日 14:38:51
>>>>> "Paul" == Paul Barrett <peb...@gm...> writes:
 Paul> The following works for me.
 >>>> xticks(arange(len(data)), date, rotation=30, size='small')
Yes, and you can change the rotation of the existing ticks with
from pylab import figure, show
fig = figure()
ax = fig.add_subplot(111)
ax.plot([1,2,3])
labels = ax.get_xticklabels()
for label in labels:
 label.set_rotation(30)
show()
From: Jeff W. <js...@fa...> - 2006年02月27日 14:37:09
Chris Shen wrote:
> Dear friends,
>
> I just upgrade matplotlib from 0.83.2 to 0.87 under WinXP, Python 2.3.5,
> Numeric 23.8. I find out that all my plots using contour function do not
> work anymore. I also tried the examples: contour_demo.py,
> contourf_demo.py and contour_image.py. All of them do not work with the
> following error message:
>
> File "contour_demo.py", line 26, in ?
> levels, colls = contour(X, Y, Z)
> TypeError: unpack non-sequence
>
> Anyone has any clue in fixing this problem?
>
> Best regards,
> Chris
>
Chris: Contour now returns a single object, so replace all your calls 
with something like
 
CS = contour(X,Y,Z)
-Jeff
P.S. You must not have updated the examples, because the ones that come 
with maplotlib 0.87 do work.
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/CDC1 FAX : (303)497-6449
325 Broadway Web : http://www.cdc.noaa.gov/~jsw
Boulder, CO, USA 80305-3328 Office: Skaggs Research Cntr 1D-124
From: Chris S. <chr...@ai...> - 2006年02月27日 14:01:02
Dear friends,
I just upgrade matplotlib from 0.83.2 to 0.87 under WinXP, Python 2.3.5,
Numeric 23.8. I find out that all my plots using contour function do not
work anymore. I also tried the examples: contour_demo.py,
contourf_demo.py and contour_image.py. All of them do not work with the
following error message:
 File "contour_demo.py", line 26, in ?
 levels, colls = contour(X, Y, Z)
TypeError: unpack non-sequence
Anyone has any clue in fixing this problem?
Best regards,
Chris
From: Paul B. <peb...@gm...> - 2006年02月27日 13:36:21
On 2/27/06, Jason C. Leach <jas...@gm...> wrote:
>
> Hi,
>
> Is it possible to angle the text in the xticklabels? I find it bunches u=
p
> a bit too much in my graph and I can't really read it.
The following works for me.
>>> xticks(arange(len(data)), date, rotation=3D30, size=3D'small')
 -- Paul
From: Jason C. L. <jas...@gm...> - 2006年02月27日 07:25:30
Hi,
Is it possible to angle the text in the xticklabels? I find it bunches up =
a
bit too much in my graph and I can't really read it.
Thanks,
Jason.
--
........................................
.... Jason C. Leach
.... PGP Key: 0x62DDDF75
.... Keyserver: gpg.mit.edu
From: Jeff P. <jef...@ya...> - 2006年02月27日 02:55:20
Hello, I'm trying to create just one scatter point and change its position. here's my code:
 
 marker = axes.scatter([xValue,], [yValue],])
 
 #show the plots
 canvas.draw()
 
I want to change the x and y value of the marker without creating a new marker (the old one is still showing). i saw that there was something like:
 
 marker.set_array()
 
 but I wasn't sure how to use this properly. how can I dynamically reset my scatter position? thanks.
 
 Jeff
mat...@li... wrote: Send Matplotlib-users mailing list submissions to
 mat...@li...
To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
or, via email, send a message with subject or body 'help' to
 mat...@li...
You can reach the person managing the list at
 mat...@li...
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Matplotlib-users digest..."
Today's Topics:
 1. Bug in WXAgg on OS X and Matplotlib 0.87 (Samuel M. Smith)
 2. Matplotlib installed font names (Samuel M. Smith)
 3. Getting latex fonts to display in plot window (Samuel M. Smith)
 4. Re: Getting latex fonts to display in plot window (Darren Dale)
 5. problem compiling matplotlib (-mtune=i686) (Sue Tranter)
 6. visualization tool (Ryan Krauss)
 7. Re: visualization tool (Arnd Baecker)
--__--__--
Message: 1
Cc: mat...@li...,
 Smith Samuel 
From: "Samuel M. Smith" 
Date: 2006年2月25日 10:22:57 -0700
To: Christopher Barker 
Subject: [Matplotlib-users] Bug in WXAgg on OS X and Matplotlib 0.87
Setting the WX_CONFIG environment variable before the build fixed one 
problem. It is now finding my matplotlibrc file.
I thought maybe it was a font corruption problem but it I use TkAgg 
everything works fine with my 0.87.1cvs build. So
I think maybe I have uncovered a bug in the WXAgg? I would like to 
help fix it but I don't have a clue of where to start.
I also tried WxAgg with the first fonts in the rc file set to the 
ones that come installed with matplotlib
font.serif : Bitstream Vera Serif
font.sans-serif : Bitstream Vera Sans
and it still crashes. So something is wrong. Maybe its my 
environment. It would be nice if someone could verify
if they get the same problem
Here is the debug output
AlBook:smithsm$ ipython -pylab
loaded rc file /Users/smithsm/.matplotlib/matplotlibrc
matplotlib version 0.87.1cvs
verbose.level debug
interactive is False
platform is darwin
loaded modules: ['IPython.Prompts', '_bisect', 'distutils', 
'IPython.iplib', 'IPython.signal', 'random', 'IPython.FakeModule', 
'datetime', 'matplotlib.tempfile', 'IPython.bdb', 
'distutils.sysconfig', 'pytz.datetime', 'IPython.time', 'struct', 
're', 'tempfile', 'pprint', 'IPython.copy_reg', 'imp', 
'IPython.OInspect', 'collections', 'IPython.pydoc', 
'IPython.cStringIO', 'zipimport', 'IPython.codecs', 'string', 
'matplotlib.dateutil', 'IPython.imp', 'repr', 
'matplotlib.__future__', 'pytz.tzinfo', 'IPython.Itpl', 
'IPython.Debugger', 'new', 'distutils.re', 'IPython.excolors', 
'IPython.Queue', 'IPython.os', 'resource', 'bisect', 'IPython.glob', 
'signal', 'cmd', 'pydoc', 'threading', 'token', 'shlex', 
'pytz.bisect', 'IPython.shlex', 'matplotlib.pytz', 
'IPython.exceptions', 'IPython.new', 'dis', 'cStringIO', 'locale', 
'IPython.path', 'Queue', 'IPython.types', 'atexit', 
'IPython.commands', 'encodings', 'IPython.threading', 'bdb', 
'IPython.ConfigLoader', 'matplotlib.warnings', 'matplotlib.sys', 
'encodings.types', 'posix', 'encodings.ascii', 'math', 
'IPython.platutils_dummy', 'fcntl', 'IPython.profile', 
'IPython.platutils_win32', 'dateutil', 'optparse', 'UserDict', 
'inspect', 'distutils.os', 'matplotlib', 'IPython.hooks', 
'exceptions', 'codecs', 'getopt', 'md5', 'IPython.ColorANSI', 
'commands', 'socket', 'thread', 'sre', 'IPython.StringIO', 
'traceback', 'IPython.pstats', 'pkg_resources', 'itertools', 
'opcode', 'pstats', 'IPython.tokenize', 'distutils.sys', 'os', 'pdb', 
'IPython.traceback', '__future__', '_sre', 'IPython.Shell', 
'__builtin__', 'IPython', 'distutils.string', 'matplotlib.datetime', 
'IPython.codeop', 'posixpath', 'popen2', 'errno', '_socket', 
'binascii', 'IPython.sys', 'IPython.re', 'sre_constants', 
'IPython.platutils_posix', 'IPython.PyColorize', 'matplotlib.md5', 
'types', 'IPython.genutils', 'tokenize', 'IPython.pdb', 'cPickle', 
'pytz.sys', 'IPython.platutils', 'IPython.macro', '_codecs', 
'IPython.token', '_locale', 'IPython.keyword', 'IPython.IPython', 
'IPython.string', 'pytz', 'IPython.__builtin__', 'copy', 
'matplotlib.os', 'IPython.socket', 'IPython.resource', 'IPython.cmd', 
'keyword', 'StringIO', 'IPython.linecache', 'IPython.__main__', 
'encodings.aliases', 'fnmatch', 'sre_parse', 'IPython.ultraTB', 
'IPython.tempfile', 'IPython.Release', 'IPython.OutputTrap', 
'copy_reg', 'sre_compile', '_random', 'site', 'IPython.getopt', 
'IPython.ipstruct', 'IPython.inspect', '__main__', 'shutil', 
'IPython.Magic', 'IPython.pprint', 'strop', 'IPython.bisect', 
'IPython.textwrap', 'IPython.shutil', 'encodings.codecs', 'gettext', 
'IPython.Logger', 'IPython.fnmatch', 'encodings.exceptions', 
'pytz.sets', 'profile', 'IPython.wildcard', 'stat', '_ssl', 
'warnings', 'IPython.deep_reload', 'glob', 'sets', 'textwrap', 'sys', 
'IPython.ipmaker', 'codeop', 'os.path', 'IPython.background_jobs', 
'IPython.DPyGetOpt', 'IPython.cPickle', 'IPython.usage', 
'matplotlib.distutils', 'distutils.errors', 'marshal', 
'IPython.__future__', 'linecache', 'matplotlib.shutil', 'time', 
'IPython.ipapi']
numerix numpy 0.9.5.2006
font search path ['/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/site-packages/matplotlib/mpl-data']
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/cmtt10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraMoBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraMoBI.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraSeBd.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraMono.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/cmsy10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/cmex10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/cmmi10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/VeraIt.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/cmr10.ttf
trying fontname /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/matplotlib/mpl-data/Vera.ttf
$HOME=/Users/smithsm
CONFIGDIR=/Users/smithsm/.matplotlib
loaded ttfcache file /Users/smithsm/.matplotlib/ttffont.cache
matplotlib data path /Library/Frameworks/Python.framework/Versions/ 
2.4/lib/python2.4/site-packages/matplotlib/mpl-data
backend WXAgg version 2.6.2.1
Python 2.4.2 (#3, Jan 8 2006, 20:33:07)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.1.fix1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
 Welcome to pylab, a matplotlib-based Python environment.
 For more information, type 'help(pylab)'.
In [1]: plot([-2.345,-12.349])
------------------------------------------------------------------------ 
---
exceptions.MemoryError Traceback (most 
recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
 1046 self.realize()
 1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
 1049 # Update the display using a PaintDC
 1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
 60 FigureCanvasAgg.draw(self)
 61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap 
(self.get_renderer(), None)
 63 if repaint:
 64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
wx.Bitmap
------------------------------------------------------------------------ 
---
exceptions.MemoryError Traceback (most 
recent call last)
/Install/Python/MacPython/Python2.4.2/MatPlotLib/examples/
console>
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/pylab.py in plot(*args, **kwargs)
 2122 def plot(*args, **kwargs):
 2123 # allow callers to override the hold state by passing 
hold=True|False
-> 2124 b = ishold()
 2125 h = popd(kwargs, 'hold', None)
 2126 if h is not None:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/pylab.py in ishold()
 962 Return the hold status of the current axes
 963 """
--> 964 return gca().ishold()
 965
 966 def isinteractive():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/pylab.py in gca(**kwargs)
 913 """
 914
--> 915 ax = gcf().gca(**kwargs)
 916 return ax
 917
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/pylab.py in gcf()
 923 return figManager.canvas.figure
 924 else:
--> 925 return figure()
 926
 927 def gci():
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/pylab.py in figure(num, figsize, dpi, facecolor, 
edgecolor, frameon)
 893 figManager.canvas.figure.number = num
 894
--> 895 draw_if_interactive()
 896 return figManager.canvas.figure
 897
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/IPython/genutils.py in wrapper(*args, **kw)
 802 def wrapper(*args,**kw):
 803 wrapper.called = False
--> 804 out = func(*args,**kw)
 805 wrapper.called = True
 806 return out
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wx.py in draw_if_interactive()
 1170 figManager = Gcf.get_active()
 1171 if figManager is not None:
-> 1172 figManager.canvas.draw()
 1173
 1174
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
 60 FigureCanvasAgg.draw(self)
 61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap 
(self.get_renderer(), None)
 63 if repaint:
 64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
wx.Bitmap
In [2]: 
------------------------------------------------------------------------ 
---
exceptions.MemoryError Traceback (most 
recent call last)
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wx.py in _onPaint(self, evt)
 1046 self.realize()
 1047 # Render to the bitmap
-> 1048 self.draw(repaint=False)
 1049 # Update the display using a PaintDC
 1050 self.gui_repaint(drawDC=wx.PaintDC(self))
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/matplotlib/backends/backend_wxagg.py in draw(self, repaint)
 60 FigureCanvasAgg.draw(self)
 61
---> 62 self.bitmap = _convert_agg_to_wx_bitmap 
(self.get_renderer(), None)
 63 if repaint:
 64 self.gui_repaint()
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
wx.Bitmap
--__--__--
Message: 2
Cc: Smith Samuel 
From: "Samuel M. Smith" 
Date: 2006年2月25日 10:28:58 -0700
To: mat...@li...
Subject: [Matplotlib-users] Matplotlib installed font names
There are several fonts installed by matplotlib into the mpl_data 
folder. The names or
sort of cryptic. I tried matching them up with the family names in 
the matplotlibrc file list for
font.serif
font.sans-serif
but the only one that makes sense is Bitstream Vera
What is the family name for cmt, cms cmex and also the pXXX.afm fonts?
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
--__--__--
Message: 3
Cc: Rob Hetland ,
 Smith Samuel 
From: "Samuel M. Smith" 
Date: 2006年2月25日 10:32:56 -0700
To: mat...@li...
Subject: [Matplotlib-users] Getting latex fonts to display in plot window
Rob,
Is there a way for matplotlib to use the latex fonts in the plot 
window not just in the saved version of the graph?
Even when I have usetex True it picks a font from the font list given 
in the matplotlibrc file.
How do I force it to use the type1cm or pslatex fonts?
Sam
--__--__--
Message: 4
From: Darren Dale 
 
Organization: Cornell University
To: mat...@li...
Subject: Re: [Matplotlib-users] Getting latex fonts to display in plot window
Date: 2006年2月25日 13:53:01 -0500
On Saturday 25 February 2006 12:32, Samuel M. Smith wrote:
> Rob,
>
> Is there a way for matplotlib to use the latex fonts in the plot
> window not just in the saved version of the graph?
> Even when I have usetex True it picks a font from the font list given
> in the matplotlibrc file.
This is a new feature, it uses the font list to select the appropriate latex 
font, and the same font is used in the saved version.
> How do I force it to use the type1cm or pslatex fonts?
For type1cm, use:
font.serif : serif (or "computer modern roman")
font.sans-serif : sans-serif (or "computer modern sans-serif")
font.monospace : monospace (or "computer modern typewriter")
for pslatex, use:
font.serif : times
font.sans-serif : helvetica
font.monospace : courier
I'm planning on updating the usetex wiki page, I just havent had time to do it 
yet.
Darren
--__--__--
Message: 5
Date: 2006年2月25日 19:29:49 +0000 (GMT)
From: Sue Tranter 
To: mat...@li...
Subject: [Matplotlib-users] problem compiling matplotlib (-mtune=i686)
I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) and
have python:
Python 2.4.1 (#1, Sep 13 2005, 00:39:20)
I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or 
setupext.py at all. I think I have all the graphics things installed.
The error message goes:
>>> [snip]
building 'matplotlib._agg' extension
creating build/temp.linux-i686-2.4
creating build/temp.linux-i686-2.4/src
creating build/temp.linux-i686-2.4/agg23
creating build/temp.linux-i686-2.4/agg23/src
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mtune=i686 
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -I/usr/X11R6/include -fPIC 
-Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o 
build/temp.linux-i686-2.4/src/agg.o
cc1plus: error: invalid option `tune=i686'
error: command 'gcc' failed with exit status 1
>> gcc --version
gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
Copyright (C) 2003 Free Software Foundation, Inc.
I cant find anywhere in the matplotlib-0.87 directory structure that sets 
this "tune=i686". I have searched all the files in the directory structure 
for "tune" and "i686", so I'm guessing it's set somewhere else, but I dont 
know where.
Can anyone help?
thanks
Sue
--__--__--
Message: 6
Date: 2006年2月25日 15:28:49 -0500
From: "Ryan Krauss" 
To: matplotlib-users 
Subject: [Matplotlib-users] visualization tool
This is sort of not a matplotlib specific question, but it seems like
people on this list might be able to point me in some good directions.
 I need to give a lecture on feedback control systems. I would like
to talk about stabalizing unstable systems and use an inverted
pendulum for an example. I know that Matlab had a demo like this that
included a fairly neat 2D visualization of a cart moving back and
forth with an inverted pendulum on it. I would need to run a
simulation in the background that outputs the cart position and the
pendulum angle and then I would want to create an animation of the
cart and pendulum moving around.
Can anyone recommend a python package for doing this kind of animation?
Thanks,
Ryan
--__--__--
Message: 7
Date: 2006年2月26日 00:33:18 +0100 (CET)
From: Arnd Baecker 
To: Ryan Krauss 
cc: matplotlib-users 
Subject: Re: [Matplotlib-users] visualization tool
Hi Ryan,
On 2006年2月25日, Ryan Krauss wrote:
> This is sort of not a matplotlib specific question, but it seems like
> people on this list might be able to point me in some good directions.
> I need to give a lecture on feedback control systems. I would like
> to talk about stabalizing unstable systems and use an inverted
> pendulum for an example. I know that Matlab had a demo like this that
> included a fairly neat 2D visualization of a cart moving back and
> forth with an inverted pendulum on it. I would need to run a
> simulation in the background that outputs the cart position and the
> pendulum angle and then I would want to create an animation of the
> cart and pendulum moving around.
>
> Can anyone recommend a python package for doing this kind of animation?
First, you might try to use techniques described at
 http://new.scipy.org/Wiki/Cookbook/Matplotlib/Animations
If you have a reasonably fast machine it might already work out
fine enough.
Other options are pygame (never used it myself)
and Vpython (www.vpython.org) which can do some very nice things
with remarkably little code.
Best, Arnd
--__--__--
_______________________________________________
Matplotlib-users mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
End of Matplotlib-users Digest
		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail - it's free and works with Yahoo! Mail.
From: Charlie M. <cw...@gm...> - 2006年02月27日 02:05:13
Numpy and Scipy highjack distutils now, and this may be something they
add in. Do you ave numpy installed? That looks like a valid option
though.
On 2/25/06, Sue Tranter <se...@po...> wrote:
> I'm having problems compiling matplotlib. I'm running suse 9.3 (linux) an=
d
> have python:
> Python 2.4.1 (#1, Sep 13 2005, 00:39:20)
>
> I downloaded matplotlib-0.87.tar.gz, and have not changed the setup.py or
> setupext.py at all. I think I have all the graphics things installed.
>
> The error message goes:
> >>> [snip]
> building 'matplotlib._agg' extension
> creating build/temp.linux-i686-2.4
> creating build/temp.linux-i686-2.4/src
> creating build/temp.linux-i686-2.4/agg23
> creating build/temp.linux-i686-2.4/agg23/src
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=3Di586 -mtune=3Di68=
6
> -fmessage-length=3D0 -Wall -D_FORTIFY_SOURCE=3D2 -g -I/usr/X11R6/include =
-fPIC
> -Iagg23/include -Isrc -Iswig -I/usr/include/python2.4 -c src/agg.cxx -o
> build/temp.linux-i686-2.4/src/agg.o
> cc1plus: error: invalid option `tune=3Di686'
> error: command 'gcc' failed with exit status 1
>
> >> gcc --version
> gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
> Copyright (C) 2003 Free Software Foundation, Inc.
>
> I cant find anywhere in the matplotlib-0.87 directory structure that sets
> this "tune=3Di686". I have searched all the files in the directory struct=
ure
> for "tune" and "i686", so I'm guessing it's set somewhere else, but I don=
t
> know where.
> Can anyone help?
>
> thanks
> Sue
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live webc=
ast
> and join the prime developer group breaking into this new coding territor=
y!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Charlie M. <cw...@gm...> - 2006年02月27日 01:57:47
 They're just another option and it is personally preference at
this point. I strongly suggest you skim this link:
 http://peak.telecommunity.com/DevCenter/PythonEggs
- Charlie
On 2/26/06, Alan G Isaac <ai...@am...> wrote:
> On 2006年2月22日, Charlie Moad apparently wrote:
> > Notable notes:
> > - Built against numpy-0.9.5
> > - A wealth of bugfixes
> > http://sourceforge.net/project/showfiles.php?group_id=3D80706
>
> I'm on Win32 with Python 2.4.
> For this I see both an egg and an installer.
> The installer is being downloaded 15 times as often.
> What are the considerations?
>
> I thought the egg was the simpler choice:
> can't it just be put on site-packages and that's that?
> But I'm not very familiar with eggs.
> Is the issue that one may wish to modify the source,
> and the egg doesn't give direct access to that?
>
> Thank you,
> Alan Isaac
>
> PS Is it true that with eggs you can have multiple versions
> side by side and use them at will?
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live webc=
ast
> and join the prime developer group breaking into this new coding territor=
y!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Steve S. <el...@gm...> - 2006年02月27日 01:11:19
Darren Dale wrote:
> On Sunday 26 February 2006 7:50 pm, you wrote:
> 
>>Darren Dale wrote:
>>
>>>On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote:
>>>
>>>>Hi
>>>>
>>>>With 0.87 and 0.86.2 mpl randomly crashes when executing this script:
>>>>
>>>>---------------------------
>>>
>>>>from pylab import *
>>>>from matplotlib import verbose
>>>
>>>>verbose.level = 'debug-annoying'
>>>>##verbose.level = 'debug'
>>>>
>>>>rcParams['text.usetex'] = True
>>>>plot([1,2,3])
>>>>
>>>>savefig("image.eps")
>>>>---------------------------
>>>>
>>>>The crash is triggered when savefig() is called and only if
>>>>rcParams['text.usetex'] = True. The error message is
>>>>
>>>> (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to
>>>>pango_layout_set_text()
>>>>
>>>>I tried to track it down but the crash seems to occur in *different*
>>>>code segments (calling "python test.py" several times it crashed
>>>>sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes
>>>>it even *doesn't* crash at all.
>>>>
>>>>I have the following pango-stuff installed (Debian):
>>>>
>>>>elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango
>>>>ii libpango1.0-0 1.8.1-1
>>>>
>>>>ii libpango1.0-common 1.8.1-1
>>>>
>>>>ii libpango1.0-dbg 1.8.1-1
>>>>
>>>>ii libpango1.0-dev 1.8.1-1
>>>
>>>I can't reproduce your result with pango 1.10.3 installed on a gentoo
>>>system with python-2.4.2. Does the script crash if you set
>>>verbose.level=silent? It looks like one of the stdout or stderr messages
>>>from dvips/gs/dvipng is returning unicode, in which case you could try to
>>>convert them to strings before passing them to verbose.report. Just a
>>>guess.
>>
>>Yes, with verbose.level = 'silent' the script runs and saves the image
>>but in interactive use the interpreter crashes (an errow message window
>>pops up, verbose.level: silent in matplotlibrc).
> 
> 
> Did you try to wrap the stderr/stdout output with str()?
> 
No. I have to correct myself. I just tested it again (with verbose.level
= 'silent' in the script and/or matplotlibrc) and it *does* crash so
it's not the verbose messages. This seems truly random ...
cheers,
steve
-- 
Random number generation is the art of producing pure gibberish as
quickly as possible.
From: Steve S. <el...@gm...> - 2006年02月27日 00:50:57
Darren Dale wrote:
> On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote:
> 
>>Hi
>>
>>With 0.87 and 0.86.2 mpl randomly crashes when executing this script:
>>
>>---------------------------
>>from pylab import *
>>from matplotlib import verbose
>>
>>verbose.level = 'debug-annoying'
>>##verbose.level = 'debug'
>>
>>rcParams['text.usetex'] = True
>>plot([1,2,3])
>>
>>savefig("image.eps")
>>---------------------------
>>
>>The crash is triggered when savefig() is called and only if
>>rcParams['text.usetex'] = True. The error message is
>>
>> (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to
>>pango_layout_set_text()
>>
>>I tried to track it down but the crash seems to occur in *different*
>>code segments (calling "python test.py" several times it crashed
>>sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes
>>it even *doesn't* crash at all.
>>
>>I have the following pango-stuff installed (Debian):
>>
>>elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango
>>ii libpango1.0-0 1.8.1-1
>>
>>ii libpango1.0-common 1.8.1-1
>>
>>ii libpango1.0-dbg 1.8.1-1
>>
>>ii libpango1.0-dev 1.8.1-1
> 
> 
> I can't reproduce your result with pango 1.10.3 installed on a gentoo system 
> with python-2.4.2. Does the script crash if you set verbose.level=silent? It 
> looks like one of the stdout or stderr messages from dvips/gs/dvipng is 
> returning unicode, in which case you could try to convert them to strings 
> before passing them to verbose.report. Just a guess.
Yes, with verbose.level = 'silent' the script runs and saves the image 
but in interactive use the interpreter crashes (an errow message window 
pops up, verbose.level: silent in matplotlibrc).
cheers,
steve
-- 
Random number generation is the art of producing pure gibberish as 
quickly as possible.

Showing 25 results of 25

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 によって変換されたページ (->オリジナル) /