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
(8)
2
(4)
3
(21)
4
(23)
5
(3)
6
7
(8)
8
(2)
9
10
(6)
11
(4)
12
(6)
13
(1)
14
(9)
15
(10)
16
(11)
17
(3)
18
(10)
19
(9)
20
(2)
21
(10)
22
(16)
23
(8)
24
(6)
25
(6)
26
(3)
27
(5)
28
(1)
29
(14)
30
(5)
31
(14)


Showing 6 results of 6

From: Eric F. <ef...@ha...> - 2006年08月12日 21:40:48
George,
I am not a Windows user, so I can't report from my own experience, but 
here are some things to try:
1) Enthought Python suite: http://code.enthought.com/enthon/
The matplotlib version is slightly behind (0.87.3), but that may not 
matter for your present purposes.
2) Wait until a new matplotlib release compatible with current numpy is 
made. It has been under discussion, so I think it will be soon.
3) Until (2) occurs, use numarray or Numeric instead of numpy. They 
have been stable for a long time. I assume the Windows mpl compilation 
supports them.
4) Did you try 
http://prdownloads.sourceforge.net/numpy/numpy-0.9.8.win32-py2.4.exe?download
I think that is this the version that matches the Windows mpl 0.87.4, 
but if you really need scipy, then I think you would have to back up to 
an earlier version of that.
Eric
George Gumas wrote:
> I am having running pylab from scipy in that I get the error messsage
> """ E:\ProgramFiles\Python\Lib\site-packages\matplotlib\_contour.py", 
> line 17, in ?
> from matplotlib._ns_cntr import *
> RuntimeError: module compiled against version 90709 of C-API but 
> this version of numpy is 1000000"""
> 
> I am using the following modules
> python 2.4 scipy-0.5.0
> python 2.4 numpy-1.0b1
> python 2.4 matplotlib-087.4
> 
> and running python windowsXp
> I cant find other versions of matlinbplot, and when I try different 
> versions of numpy I get an error of the sort that
> it cant load oldnumeric.
> 
> Can someone suggest a solution to my problem
> 
> thanks
> 
> george gumas
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: George G. <gg...@gm...> - 2006年08月12日 21:05:35
I am having running pylab from scipy in that I get the error messsage
 """ E:\ProgramFiles\Python\Lib\site-packages\matplotlib\_contour.py", line
17, in ?
 from matplotlib._ns_cntr import *
 RuntimeError: module compiled against version 90709 of C-API but this
version of numpy is 1000000"""
I am using the following modules
python 2.4 scipy-0.5.0
python 2.4 numpy-1.0b1
python 2.4 matplotlib-087.4
and running python windowsXp
I cant find other versions of matlinbplot, and when I try different
versions of numpy I get an error of the sort that
it cant load oldnumeric.
Can someone suggest a solution to my problem
thanks
george gumas
From: John H. <jdh...@ac...> - 2006年08月12日 18:33:32
>>>>> "Charlie" == Charlie Moad <cw...@gm...> writes:
 Charlie> Matplotlib didn't used to link against the wxpython
 Charlie> c-api. The recent versions are linked against the
 Charlie> unicode version of wx, not the ansi. You can install the
 Charlie> unicode version. We are trying to decide how to handle
 Charlie> this.
On some backends, eg qt, we can do the blit via python method calls
and python buffer objects. I know this can be done w/ pygtk and it
has been on my wishlist to remove the gtk extension code and use pure
python since getting rid of gtk, wx and tk devel headers and libs at
build time would significantly reduce the kinds of cross-platform
build and runtime issues we are seeing from this GUI dependent
extension code.
Charlie, since you are pretty familiar with the blitting API, perhaps
you could take a look and see how much work it would be to do wx
blitting w/o extension code. I'd be happy to add some additional
helper methods in agg if need be, as we did for qt. I'd be willing to
trade a little performance to avoid these distribution headaches.
JDH
From: Charlie M. <cw...@gm...> - 2006年08月12日 18:07:52
Matplotlib didn't used to link against the wxpython c-api. The recent
versions are linked against the unicode version of wx, not the ansi.
You can install the unicode version. We are trying to decide how to
handle this.
- Charlie
On 8/12/06, Joaquin Abian Monux <gat...@ho...> wrote:
> Dear all,
> I upgraded matplotlib from 0.87.2.win32-py2.4 to 0.87.4. When trying to r=
un
> the test program
>
> #program text.py
> import matplotlib as mpl
> mpl.use('WXAgg')
> mpl.interactive(False)
> from pylab import plot, show
> plot([1,2,3,4])
> show()
>
> double clicking on it or at the command line I got a warning from python.=
exe
> saying that library wxmsw26uh_vc.dll could not be found. This warning nev=
er
> appeared with vs 87.2.
> Surprisingly, after saying OK to the warning the plot is plotted.
> I searched the web and found that recently someone reported a similar
> problem with matplotlib 87.4 and this library to the enthon team. I searc=
hed
> my hard disk and I found this library in the support directory of
> wxGlade(!!!???). I put this library in the Python24 directory and the
> warning disappeared but then I got a new one:
>
> C:\>python text.py
>
> Traceback (most recent call last):
> File "text.py", line 6, in ?
> show()
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wx.py",
> line 1
> 193, in show
> figwin.canvas.draw()
> File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wxagg.p=
y",
> lin
> e 63, in draw
> self.bitmap =3D _convert_agg_to_wx_bitmap(self.get_renderer(), None)
> MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the
> wx.Bitmap
>
> I have the same problem with version 87.3. The problem only appears if I
> want to use WXAgg.
> I went back to vs87.2 and everything works as expected.
>
> Could someone help me?
>
> Thanks
> Joaquin
>
> _________________________________________________________________
> =BFEst=E1s pensando en cambiar de coche? Todas los modelos de serie y ext=
ras en
> MSN Motor. http://motor.msn.es/researchcentre/
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
sier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=
o
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Joaquin A. M. <gat...@ho...> - 2006年08月12日 17:05:06
Dear all,
I upgraded matplotlib from 0.87.2.win32-py2.4 to 0.87.4. When trying to run 
the test program
#program text.py
import matplotlib as mpl
mpl.use('WXAgg')
mpl.interactive(False)
from pylab import plot, show
plot([1,2,3,4])
show()
double clicking on it or at the command line I got a warning from python.exe 
saying that library wxmsw26uh_vc.dll could not be found. This warning never 
appeared with vs 87.2.
Surprisingly, after saying OK to the warning the plot is plotted.
I searched the web and found that recently someone reported a similar 
problem with matplotlib 87.4 and this library to the enthon team. I searched 
my hard disk and I found this library in the support directory of 
wxGlade(!!!???). I put this library in the Python24 directory and the 
warning disappeared but then I got a new one:
C:\>python text.py
Traceback (most recent call last):
 File "text.py", line 6, in ?
 show()
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wx.py", 
line 1
193, in show
 figwin.canvas.draw()
 File "C:\Python24\Lib\site-packages\matplotlib\backends\backend_wxagg.py", 
lin
e 63, in draw
 self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)
MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create the 
wx.Bitmap
I have the same problem with version 87.3. The problem only appears if I 
want to use WXAgg.
I went back to vs87.2 and everything works as expected.
Could someone help me?
Thanks
Joaquin
_________________________________________________________________
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en 
MSN Motor. http://motor.msn.es/researchcentre/
From: Benoit D. <ben...@li...> - 2006年08月12日 08:43:22
Hi,
Try editing your matplotlib rc file and change these font preferences
 font.serif : New Century Schoolbook, Century Schoolbook L,=20
Utopia, ITC Bookman, Bookman, Bitstream Vera Serif, Nimbus Roman No9 L,=20
Times New Roman, Times, Palatino, Charter, serif
 font.sans-serif : Lucida Grande, Verdana, Geneva, Lucida,=20
Bitstream Vera Sans, Arial, Helvetica, Avant Garde, sans-serif
 font.cursive : Apple Chancery, Textile, Zapf Chancery, Sand,=20
cursive
 font.fantasy : Comic Sans MS, Chicago, Charcoal, Impact,=20
Western, fantasy
 font.monospace : Andale Mono, Bitstream Vera Sans Mono, Nimbus=20
Mono L, Courier New, Courier, Fixed, Terminal, monospace
by moving the bitstream fonts to the front
Next, you have to use LaTeX for all your text in your plot.
So, use:
rc('text', usetex=3DTrue)
xlabel(r'\texrtbf{toto}')
Best regards.
Benoit
Marin Manuel a =E9crit :
> Hi list,
>=20
> I'm having some font weirdness using matplotlib 0.87.4 on MacOSX with=20
> the WXAgg backend.
> It's a clean install of universal builds from macpython.org.
>=20
> First of all, when lauching for the first time (or if I delete the font=
=20
> cache), I get:
>> ipython -pylab
>> loaded rc file /Users/manuel/.matplotlib/matplotlibrc
>> matplotlib version 0.88
>> verbose.level helpful
>> interactive is True
>> platform is darwin
>> numerix numpy 0.9.8
>> font search path=20
>> ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site=
-packages/matplotlib/mpl-data']=20
>>
>> $HOME=3D/Users/manuel
>> CONFIGDIR=3D/Users/manuel/.matplotlib
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file /System/Library/Fonts/Helvetica=20
>> LT MM
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file /System/Library/Fonts/HelveLTMM
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file /System/Library/Fonts/Times LT M=
M
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file /Library/Fonts/fonts.cache-1
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file=20
>> /System/Library/Fonts/LastResort.dfont
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file=20
>> /System/Library/Fonts/Keyboard.dfont
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/font_manager.py:453:=20
>> UserWarning: Could not open font file /System/Library/Fonts/TimesLTMM
>> warnings.warn("Could not open font file %s"%fpath)
>> Saving TTF font cache for non-PS backends to=20
>> /Users/manuel/.matplotlib/ttffont.cache.
>> Delete this file to have matplotlib rebuild the cache.
>> matplotlib data path=20
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p=
ackages/matplotlib/mpl-data=20
>>
>> backend WXAgg version 2.6.3.2rc2
>> Python 2.4.3 (#1, Mar 30 2006, 11:02:16)
>> Type "copyright", "credits" or "license" for more information.
>>
>> IPython 0.7.2 -- 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)'.
>=20
> Then, if I try to save a plot in eps, nor Preview.app nor Illustrator=20
> can open the eps file. Furthermore the file is huge (several MB) for a=20
> very simple plot.
> If I save the plot as a svg, then I can open the file with Firefox or=20
> Illustrator, although Illustrator complains about a "missing font" and=20
> substitute it with its defaut font. I've looked onto the svg file and i=
t=20
> should use Lucida Grande, which is available on the system...
>=20
> I've read on this very list that I might solve some issues by putting=20
> the Bitstream familly of fonts as first choice in my matplotlibrc, whic=
h=20
> I did.
> In these conditions, saving as eps yields a file which can be opened by=
=20
> Preview.app, but opening it in Illustrator results in a plot where ever=
y=20
> fonts are replaced by little boxes (see attached picture)
>=20
> -----------------------------------------------------------------------=
-
>=20
> Saving as a svg works too, excepts that both in Firefox and illustrator=
,=20
> the font used are Bitstream Vera Sans *Oblique* whereas inside the svg=20
> file it is written Bitstream Vera Sans Roman...
>=20
> Also, if I remove the section %%BeginFont: BitstreamVeraSans-Roman (...=
)=20
> %%EndFont directly from the eps file, then I can open it perfectly fine=
=20
> in Illustrator.
>=20
> I'm not sure this is directly related to matplotlib, but i'll be=20
> grateful of someone can help me with these little annoyances.
>=20
> Thanks,
> Marin
>=20
>=20
>=20
> -----------------------------------------------------------------------=
-
>=20
> -----------------------------------------------------------------------=
--
> Using Tomcat but need to do more? Need to support web services, securit=
y?
> Get stuff done quickly with pre-integrated technology to make your job =
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron=
imo
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
>=20
>=20
> -----------------------------------------------------------------------=
-
>=20
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--=20
Benoit Donnet
Universit=E9 Pierre & Marie Curie (Paris VI)
Laboratoire LIP6 - R=E9seaux & Performances
8, rue du Capitaine Scott
75015 Paris
France
Phone: 00 33 (0)1 44 27 88 83
traceroute@home Project: http://trhome.sourceforge.net
Home Page: http://rp.lip6.fr/~donnet

Showing 6 results of 6

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