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 results of 226

<< < 1 .. 4 5 6 7 8 .. 10 > >> (Page 6 of 10)
From: <sg...@ol...> - 2006年08月15日 20:05:49
Thank you very much.
What I would like is example for embedding_in_qt.py but whith qt4
when I tried :
import PyQt4
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as
FigureCanvas
from matplotlib.figure import Figure
but I have :
Traceback (most recent call last):
 File "embedding_in_qt.py", line 26, in ?
 from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg as
FigureCanvas
 File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_qtagg.py",
line 12, in ?
 from backend_qt import qt, FigureManagerQT, FigureCanvasQT,\
 File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_qt.py",
line 18, in ?
 import qt
RuntimeError: the qt and PyQt4.QtCore modules both wrap the QObject class
I have a debian sid machine and the package python-matplotlib depends on
python-qt3. But the package python-qt4 exists.
Any ideas what to do ?
Samuel
From: Christopher B. <Chr...@no...> - 2006年08月15日 18:38:44
Daniel Kornhauser wrote:
> I looked at the other wx examples, and even if they are great examples 
> (And I would like to thank a lot the original author Jeremy O'Donoghue 
> ;-) ), they could afford some cleaning up to conform to the wx style guide:
> http://wiki.wxpython.org/index.cgi/wxPython_Style_Guide
> 
> Do you think such a clean up, would be welcomed ?
I think it's a great idea -- but then, I'm the primary author of that 
style guide ;-)
-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: Charlie M. <cw...@gm...> - 2006年08月15日 18:15:20
Yes. Trying running a script like so:
python examples/simple_plot-py -dQt4Agg
On 8/15/06, sg...@ol... <sg...@ol...> wrote:
> Is matplotlib compatible whith PyQt4 ?
>
> Thank you
>
> samuel
>
>
> -------------------------------------------------------------------------
> 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: <sg...@ol...> - 2006年08月15日 16:46:39
Is matplotlib compatible whith PyQt4 ?
Thank you
samuel
From: Daniel K. <kor...@re...> - 2006年08月15日 13:39:12
Hi Guys:
> John> many wx users have contributed new/better/more/different wx
> John> examples (embedding_in_wx[1-4].py) to atone for the original
> 
Another suggestion that I would like to make is to change the name of 
the examples. I think all the examples that have to do with a particular 
backed should be prefixed with the name of the toolkit. I think this is 
important since the new users can see at a glance all the examples that 
are related to wx.
Thus I think the name or the rewritten wxcursor_demo.py should be 
changed to embedding_in_wx_cursor.py, sounds awful, but it's 
understandable and more practical.
Another option is to put it next to the cursor example and rename it 
from wxcursor_demo.py to cursor_demo_wx.py
I looked at the other wx examples, and even if they are great examples 
(And I would like to thank a lot the original author Jeremy O'Donoghue 
;-) ), they could afford some cleaning up to conform to the wx style guide:
 http://wiki.wxpython.org/index.cgi/wxPython_Style_Guide
Do you think such a clean up, would be welcomed ?
> BTW, have you seen the matplotlib native cursoring, which uses
> matplotlib or drawing rather than native wx.
>
> examples/widgets/cursor.py
> 
Thanks for the tip John, but I found it too slow for my application (I 
change a spectrogram in another figure in function of the pixel where 
cursor is located).
Furthermore native cursoring does not support several cursor pointer 
shapes does it ?
It only supports the cross doesn't it ?
 
 Daniel
From: John H. <jdh...@ac...> - 2006年08月15日 03:25:25
>>>>> "John" == John Hunter <jdh...@ac...> writes:
 John> But the example was written a long time ago and since then
 John> many wx users have contributed new/better/more/different wx
 John> examples (embedding_in_wx[1-4].py) to atone for the original
Please forgive everything I wrote as the rantings of a deranged
lunatic. I now see you were talking about the *cursor* demo, not the
*embedding* demo.....
BTW, have you seen the matplotlib native cursoring, which uses
matplotlib or drawing rather than native wx.
 examples/widgets/cursor.py
JDH
From: John H. <jdh...@ac...> - 2006年08月15日 03:05:30
>>>>> "Daniel" == Daniel Kornhauser <kor...@re...> writes:
 Daniel> This said, I thank a lot the person who started the
 Daniel> example since I used it as a starting point.
You should also thank that person because he (Jeremy O'Donoghue)
wrote the wx backend <wink>. 
But the example was written a long time ago and since then many wx
users have contributed new/better/more/different wx examples
(embedding_in_wx[1-4].py) to atone for the original sins. I'm happy
to use your new/more/better/different example, but I'll first defer to
the wisdom of the resident wxperts, who may have some comments.
JDH
From: Daniel K. <kor...@re...> - 2006年08月15日 00:39:21
Attachments: wxcursor_demo.py
I am making a new wxcursor_demo.py example I attach it to this mail.
If anybody can help me iron those wrinkles I think we can make a great 
wxcursor_demo example.
I am not proud of invoking the SetCursor method on the wx.EVT_PAINT 
event but it works ...
The present wxcursor_demo example is broken because:
 - Does not follow wx coding standards, not pythonic at all.
 - Very complicated example to follow and long.
 - Some nonsensical code such as the Time and Price part.
 - The wx "hand draw", crosshair has lots of disadvantages (you get 
the mouse pointer right next to it so it's useless for picking pixels in 
images.)
 - The users should have access to wx.StockCursor, with the current 
example every cursor has to be " hand drawn"
 This said, I thank a lot the person who started the example 
since I used it as a starting point.
 Any feedback would be appreciated.
 
 
 Daniel.
From: Eric F. <ef...@ha...> - 2006年08月14日 23:47:47
Support for nan in inputs to matplotlib is presently spotty (and mostly 
accidental); use masked arrays instead. Masked arrays have been 
supported by contourf for a long time, but I added masked array support 
to quiver (and only for u and v, not for x and y) only very recently, so 
 until a new release is made (probably very soon) it will be available 
only in svn.
To make a masked array from your array with nans, do something like this:
import pylab as P
um = P.nx.ma.masked_where(P.nx.isnan(u), u)
It might make sense to have matplotlib argument handling code do this 
automatically on all arguments that can be masked arrays, but unless or 
until we make that change, you will have to to it manually as needed.
Eric
Dwishen Ramanah wrote:
> Dear all,
> 
> I have to quiver(x,y,u,v) , where u,v are displacement vectors and x,y 
> their position.
> I also have to contourf(x,y,u)
> 
> u and v have some nan elements. how does matplotlib handle nans because it 
> returns this error:
> 
> ValueError: math domain error
> 
> Thanks
> 
> Dwishen
> 
> 
> -------------------------------------------------------------------------
> 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: Dwishen R. <s40...@st...> - 2006年08月14日 23:26:52
Dear all,
I have to quiver(x,y,u,v) , where u,v are displacement vectors and x,y 
their position.
I also have to contourf(x,y,u)
u and v have some nan elements. how does matplotlib handle nans because it 
returns this error:
ValueError: math domain error
Thanks
Dwishen
From: Stefan v. d. W. <st...@su...> - 2006年08月14日 23:24:29
On Mon, Aug 14, 2006 at 11:12:29AM -0700, Christopher Barker wrote:
> Another (or additional) option is for both MPL and wx to support the ne=
w=20
> array interface protocol in numpy. There's a lot of other reasons to do=
=20
> that, and, again, Robin has expressed his support for this. If we could=
=20
> get MPL, wx, numpy, and PIL all passing data around with this protocol,=
=20
> we'd be in great shape. Travis posted a patch to PIL for support a whil=
e=20
> back, I don't know if it's going to get applied or not, but it's worth=20
> looking at.
Looks like it has been added already. From
http://effbot.org/zone/pil-changes-116.htm
- Added "fromarray" function, which takes an object implementing the
 NumPy array interface and creates a PIL Image from it. (from Travis
 Oliphant).
- Added NumPy array interface support (__array_interface__) to the
 Image class (based on code by Travis Oliphant). This allows you to
 easily convert between PIL image memories and NumPy arrays:
import numpy, Image
i =3D Image.open('lena.jpg')
a =3D numpy.asarray(i) # a is readonly
i =3D Image.fromarray(a)
Regards
St=E9fan
From: Daniel K. <kor...@re...> - 2006年08月14日 21:08:23
Hey guys:
Is there a way of hiding the mouse pointer in wxcursor_demo.py ?
I just want to keep cursor and do away with the mouse pointer.
I want to use it for ROI selection over an image, so the mouse pointer 
gets in the way.
I am so desperate that I even tried SetCursor() knowing it would not 
work ...
 Daniel
From: Christopher B. <Chr...@no...> - 2006年08月14日 21:05:53
Kenny Ortmann wrote:
> I am not sure if this would be the right place to ask this question
this is more of a wxPython question than an MPL one, so you might have 
more luck on wxPython-users.
> My problem is when i go to destroy the first Graph panel, because there is
How are you doing that? for the most part, you don't need (and 
shouldn't) destroy a wxPython window by hand -- let Python's garbage 
collection take care of it.
If you're a bit more specific as to what you need to do, perhaps someone 
could suggest another way.
Try to trim this down to the smallest possible example, make that a 
stand-alone application, post that, and we should be able to 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: Kenny O. <ya...@em...> - 2006年08月14日 20:30:41
I am not sure if this would be the right place to ask this question but I
figure there is no harm in asking and if it is the wrong place then just
disregard the questoin.
I am working with 3 seperate panels in a wx.Frame. One panel is used as a
status bar at the bottom displaying data. One of the panels is used as a
custom toolbar on the left side and the other Panel is used for multiple
things, collecting user info, which is displayed at the bottom and then
displaying a graph of data from a file, where the user has to chose
segments of the data, and then the graph needs to be redrawn.
My problem is when i go to destroy the first Graph panel, because there is
user input in between the first and second Graph, i get this error.
Traceback (most recent call last):
 File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
 self.cursor.setNormal()
 File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
 raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.
This only happens when I have clicked the exit button or the File, exit on
themenu, and the Exit dialog pops up. When i click yes, this error prints
out
Traceback (most recent call last):
 File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
 self.cursor.setNormal()
 File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
 raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.
Traceback (most recent call last):
 File "c:\python23\lib\site-packages\wxmpl.py", line 1102, in OnActivate
 self.cursor.setNormal()
 File "C:\PYTHON23\Lib\site-packages\wx-2.6-msw-ansi\wx\_core.py", line
13485, in __getattr__
 raise PyDeadObjectError(self.attrStr % self._name)
wx._core.PyDeadObjectError: The C++ part of the PlotPanel object has been
deleted, attribute access no longer allowed.
Is anyone familiar with these or how i could get rid of them?
From: Christopher B. <Chr...@no...> - 2006年08月14日 18:12:38
John Hunter wrote:
> 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.
Didn't MPL originally use the Python API, but with less than stellar 
performance? I'm not sure how efficient we can get without making 
changes to wx. However, I think Robin Dunn is pretty open to making some 
of those changes.
For one, he told me a while back that he was going to try to expose some 
of the API for working directly with wxBitmaps. If we could dump data 
straight into a wxBitmap, that would be the best option. That's likely 
to be tricky, however, as a wxBitmap is a wrapper around whatever the 
platform-native format is for a Bitmap. However, while there are a lot 
of possible formats for native Bitmaps, 24bit RGB is pretty darn common, 
if we could get top performance from that from that format, we'd be a 
long way in the right direction.
Another (or additional) option is for both MPL and wx to support the new 
array interface protocol in numpy. There's a lot of other reasons to do 
that, and, again, Robin has expressed his support for this. If we could 
get MPL, wx, numpy, and PIL all passing data around with this protocol, 
we'd be in great shape. Travis posted a patch to PIL for support a while 
back, I don't know if it's going to get applied or not, but it's worth 
looking at.
Another place to look for idea is Enthought's Kiva -- It's Agg back-end 
interacts well with wx -- or so I've heard. I haven't tried it yet myself.
I'm no C++ wiz, but I'd be willing to help with the wx modifications -- 
it's been on my list for a while. Should I send a note to Robin Dunn for 
ideas?
-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: Charlie M. <cw...@gm...> - 2006年08月14日 11:35:19
Check out the py2exe page about matplotlib.
http://starship.python.net/crew/theller/moin.cgi/MatPlotLib
On 8/14/06, Christian Meesters <mee...@un...> wrote:
> Hi,
>
> Yesterday I tried packing an application of mine which makes use of wxPython,
> scipy, and matplotlib with cx_Freeze.
>
> The Traceback I get after running FreezePython --install-dir SPlot_dir
> SPlot.py and starting the application is:
>
> Traceback (most recent call last):
> File "/home/cm/bin/initscripts/Console.py", line 27, in ?
> exec code in m.__dict__
> File "SPlot.py", line 17, in ?
> File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 720,
> in ?
> defaultParams = {
> File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 273,
> in wrapper
> ret = func(*args, **kwargs)
> File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 360,
> in _get_data_path
> raise RuntimeError('Could not find the matplotlib data files')
> RuntimeError: Could not find the matplotlib data files
>
> I should mention that the everything was done on one machine (running SuSE
> 10.0 and python 2.4.1).
>
> Anyone tried packing an application with matplotlib before and has a hint for
> me what to change?
>
> TIA
> Christian
>
> -------------------------------------------------------------------------
> 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: Christian M. <mee...@un...> - 2006年08月14日 08:41:21
Hi,
Yesterday I tried packing an application of mine which makes use of wxPython, 
scipy, and matplotlib with cx_Freeze.
The Traceback I get after running FreezePython --install-dir SPlot_dir 
SPlot.py and starting the application is:
Traceback (most recent call last):
 File "/home/cm/bin/initscripts/Console.py", line 27, in ?
 exec code in m.__dict__
 File "SPlot.py", line 17, in ?
 File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 720, 
in ?
 defaultParams = {
 File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 273, 
in wrapper
 ret = func(*args, **kwargs)
 File "/usr/lib64/python2.4/site-packages/matplotlib/__init__.py", line 360, 
in _get_data_path
 raise RuntimeError('Could not find the matplotlib data files')
RuntimeError: Could not find the matplotlib data files
I should mention that the everything was done on one machine (running SuSE 
10.0 and python 2.4.1).
Anyone tried packing an application with matplotlib before and has a hint for 
me what to change? 
TIA
Christian
From: Tommy J. <tom...@ad...> - 2006年08月13日 02:19:56
George,
I have had the same problem and
I did like Erics number one suggestion and it worked for me
Tommy
Eric Firing skrev:
> George,
>
> I am not a Windows user, so I can't report from my own experience, but=20
> 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=20
> matter for your present purposes.
>
> 2) Wait until a new matplotlib release compatible with current numpy is=
=20
> 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=20
> have been stable for a long time. I assume the Windows mpl compilation=
=20
> supports them.
>
> 4) Did you try=20
> http://prdownloads.sourceforge.net/numpy/numpy-0.9.8.win32-py2.4.exe?do=
wnload
>
> I think that is this the version that matches the Windows mpl 0.87.4,=20
> but if you really need scipy, then I think you would have to back up to=
=20
> an earlier version of that.
>
> Eric
>
> George Gumas wrote:
> =20
>> I am having running pylab from scipy in that I get the error messsage
>> """ E:\ProgramFiles\Python\Lib\site-packages\matplotlib\_contour.py",=
=20
>> line 17, in ?
>> from matplotlib._ns_cntr import *
>> RuntimeError: module compiled against version 90709 of C-API but=20
>> 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=20
>> versions of numpy I get an error of the sort that
>> it cant load oldnumeric.
>> =20
>> Can someone suggest a solution to my problem
>>
>> thanks
>>
>> george gumas
>>
>>
>>
>> ----------------------------------------------------------------------=
--
>>
>> ----------------------------------------------------------------------=
---
>> Using Tomcat but need to do more? Need to support web services, securi=
ty?
>> 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 Gero=
nimo
>> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da=
t=3D121642
>>
>>
>> ----------------------------------------------------------------------=
--
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>> =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
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> =20
--=20
Tommy Johansson
Adapteam Consulting AB
Sk=E5rs Led 3
412 63 G=F6teborg
Sweden
www.adapteam .se
Tel Sweden: +46 31 7037128
Mob Sweden: +46 768 889311
Fax Sweden: +46 768 710932
Mob Jakarta: +62 81 382 282 940
tom...@ad...
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
From: <Ben...@rp...> - 2006年08月11日 15:35:18
Hi,
I had the same problem.
I solved it by using TeX, i.e., rc('text', usetex=True) for all the text
in a plot.
Benoit
> Hi list,
>
> I'm having some font weirdness using matplotlib 0.87.4 on MacOSX with
> the WXAgg backend.
> It's a clean install of universal builds from macpython.org.
>
> First of all, when lauching for the first time (or if I delete the
> font 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 ['/Library/Frameworks/Python.framework/Versions/
>> 2.4/lib/python2.4/site-packages/matplotlib/mpl-data']
>> $HOME=/Users/manuel
>> CONFIGDIR=/Users/manuel/.matplotlib
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>> site-packages/matplotlib/font_manager.py:453: UserWarning: Could
>> not open font file /System/Library/Fonts/Helvetica LT MM
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>> site-packages/matplotlib/font_manager.py:453: 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-packages/matplotlib/font_manager.py:453: UserWarning: Could
>> not open font file /System/Library/Fonts/Times LT MM
>> warnings.warn("Could not open font file %s"%fpath)
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>> site-packages/matplotlib/font_manager.py:453: 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-packages/matplotlib/font_manager.py:453: UserWarning: Could
>> not open font file /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-packages/matplotlib/font_manager.py:453: UserWarning: Could
>> not open font file /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-packages/matplotlib/font_manager.py:453: 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 /Users/
>> manuel/.matplotlib/ttffont.cache.
>> Delete this file to have matplotlib rebuild the cache.
>> matplotlib data path /Library/Frameworks/Python.framework/Versions/
>> 2.4/lib/python2.4/site-packages/matplotlib/mpl-data
>> 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)'.
>
> Then, if I try to save a plot in eps, nor Preview.app nor Illustrator
> can open the eps file. Furthermore the file is huge (several MB) for
> a very simple plot.
> If I save the plot as a svg, then I can open the file with Firefox or
> Illustrator, although Illustrator complains about a "missing font"
> and substitute it with its defaut font. I've looked onto the svg file
> and it should use Lucida Grande, which is available on the system...
>
> I've read on this very list that I might solve some issues by putting
> the Bitstream familly of fonts as first choice in my matplotlibrc,
> which I did.
> In these conditions, saving as eps yields a file which can be opened
> by Preview.app, but opening it in Illustrator results in a plot where
> every fonts are replaced by little boxes (see attached picture)
> Saving as a svg works too, excepts that both in Firefox and
> illustrator, the font used are Bitstream Vera Sans *Oblique* whereas
> inside the svg file it is written Bitstream Vera Sans Roman...
>
> Also, if I remove the section %%BeginFont: BitstreamVeraSans-Roman
> (...) %%EndFont directly from the eps file, then I can open it
> perfectly fine in Illustrator.
>
> I'm not sure this is directly related to matplotlib, but i'll be
> grateful of someone can help me with these little annoyances.
>
> Thanks,
> Marin
>
>
> -------------------------------------------------------------------------
> 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
>
2 messages has been excluded from this view by a project administrator.

Showing results of 226

<< < 1 .. 4 5 6 7 8 .. 10 > >> (Page 6 of 10)
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 によって変換されたページ (->オリジナル) /