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



Showing 6 results of 6

From: John H. <jdh...@ac...> - 2004年06月24日 21:22:56
>>>>> "Daniele" == Daniele Varrazzo <dva...@vi...> writes:
 Daniele> I am testing matplotlib for the first time, but it
 Daniele> continuously hang after a really short time.
 Daniele> I read all the troubles about running it from an ide, so
 Daniele> i'm using plain cmd.
...snip...
 Daniele> The Python prompt is still functional. When i try to exit
 Daniele> i get (WXAgg backend):
Even in plain command mode "shell", you need a special shell to work
interactively, or you need to use TkAgg. WX* and GTK* both require
special shells to work interactively. It looks from your post that
you are trying to use wxagg from the standard python shell. This is
known not to work. If you want wx + interactive shell, try pycrust.
This is discussed on
http://matplotlib.sourceforge.net/interactive.html.
Your best bet for interactive use on win32 is TkAgg.
You should try setting in C:\Python23\share\matplotlib\.matplotlibrc
backend : TkAgg 
interactive : True
and try using either the standard python shell or ipython. If that
works, you should look at the additional setting in your rc file
tk.window_focus : True # Maintain shell focus for TkAgg
Hope this helps,
John Hunter 
From: <mai...@ya...> - 2004年06月24日 18:04:12
Dear all,
A few days ago, I was trying to install matplotlib
into os x 10.2, with the help from John I have managed
to get it to work at the end. 
So please find the following information useful if you
are thinking of building one under the os x Jaguar
environment.
System information: Mac OS X 10.2.8, gcc version 3.1,
 Apple X11 Beta 3 and Fink
installed
* make sure zlib, libpng and freetype2 are installed 
 either in /usr/local or /sw. If you are fink user, 
 don't install freetype. If you have, remove it, 
 becuase it will cause confusion for the package to 
 config later on
* install Numeric or numarray (I did it through 
 fink, no problem) and change the NUMERIX setting in
 setup.py and .matplotlibrc accordingly
* I have also installed pygtk through fink as my 
 alternative GUI framework (you don't have to if
 you don't want it). If you do, you need to add an
 extra line onto your .cshrc or .tcshrc to tell where
 pkgconfig is on your path (I did the installation 
 through fink)
 setenv PKG_CONFIG_PATH "/sw/lib/pkgconfig"
* Now X11, if you are using Apple X11 Beta 3, you also
 need the X11 SDK installed. Then if you haven't 
 done it, you should also install system-xfree86-42
 through fink so that all the required header files
 will be in /usr/X11R6/include/X11 and all the
library
 files will be in /sw directory
 Up to this point if you don't do anything on the
 path setting for the X11 header files, you would get
 errors like tk.h/tcl.h couldn't find the X11/Xlib.h
 file when you compile. There are two ways to tackle
 this, depending your own preference. I believe
 they both work eventually.
 1) create symbolic link from /usr/X11R6/include/X11
 to /sw/include/X11, I think the command is like
 this (correct me if I am wrong)
 
 ln -s /usr/X11R6/include/X11 /sw/include/
 2) include /usr/X11R6/include/X11 as basedir into 
 your setupext.py of matplotlib
* change the basdir in setupext.py into either
 'darwin':['/sw'] or 
 'darwin':['/usr/X11R6/include/X11','/sw']
 according to what you did in previous step
* type 'python setup.py insatll' in root mode or
 type 'sudo python setup.py install' otherwise,
 sit back and the installation process should go
 smoothly
Cheers,
Denis 
 
	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
From: Daniele V. <dva...@vi...> - 2004年06月24日 16:59:58
I am testing matplotlib for the first time, but it continuously hang after a
really short time.
I read all the troubles about running it from an ide, so i'm using plain
cmd.
Microsoft Windows 2000 [Versione 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\Documents and Settings\daniele>python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib.matlab import *
>>> t = arange(0.0, 5.2, 0.2)
>>> plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^')
[<matplotlib.lines.Line2D instance at 0x0100F6E8>, <matplotlib.lines.Line2D
inst
ance at 0x0100F788>, <matplotlib.lines.Line2D instance at 0x0100F7B0>]
The window pops up as expected. Now i switch to an ie window to watch online
docs looking for axis command syntax...
When i'm back to the prompt, the plot window is frozen. If visualized it
doesn't redraw itself and clicking on the close button in the menu bar pops
it up the not-responding-app dialog.
The Python prompt is still functional. When i try to exit i get (WXAgg
backend):
>>> ^Z
Fatal Python error: PyEval_RestoreThread: NULL tstate
abnormal program termination
C:\Documents and Settings\daniele>
The problem doesn't depend from the backend used: i tried, TkAgg, WX, WXAgg.
Sontimes i can add a title to a graph but it will always hang within a
minute.
I have a pretty fresh installation of Python 2.3.4 with numpy 0.9. I used
matplotlib-0.54.2-numarray0.9.win32-py2.3.exe. I also tried to use
matplotlib 0.54.1 but it looks like it need numpy to work (i think it's
wrong, i installed the numarray version) and i don't want to install it. No
tries with other releases. I currently don't have any problem in running
neither wxwindows nor tk apps.
Does anybody experienced the same problem?
Regards
--
Daniele Varrazzo
Dipartimento di Biologia Molecolare
Universita' di Siena
Via Fiorentina, 1 53100 SIENA (Italy)
From: Gregory L. <gre...@ff...> - 2004年06月24日 12:56:13
I checked on another WinXP computer, and it works on this one - seems
that I have to play the windows re-install game, or hunt down what the
exact differences between these 2 WinXP computers are :-/... 
The fact that only matplotlib exhibit this behavior is strange though, I
checked in the code (hence cc to the devel list) and the problem is
linked to an assert in the destructor of PythonExtensionBase, checking
that the ref counting of this object is 0 and exiting Python interpreter
if it is not the case...Hum, obviously I do not know the code at all,
but could the problem be linked to a destruction sequence beeing
somewhat different on my computer (for whatever reasons :-/)? 
This worry me (in addition to bother me not beeing able to run
matplotlib on my laptop for the moment ;-) ), cause it may be the sign
of "difficult to solve and reproduce" installation problems for a
package we may use in a distributed software package in the future...
I will keep investigating, but if there is a developer have any idea
about this (like, a hint about why there is this assert there and what
can cause it to fail), it would be great!
Thanks a lot, and congratulation for matplotlib, it looks the most
promising python plotting packages I have found yet! :-)
From: Gregory L. <gre...@ff...> - 2004年06月24日 11:32:23
Thanks for helping with this problem!
I just tried on a win2000 Pro computer, and indeed, no problem...
Then, on my WinXP laptop, I removed python, reinstalled it (2.3.4), next
numarray (0.9), then matplotlib (0.54.2), the exact same windows
installers that were used on the Win2000 computer, and same problem as
before, crash on matplotlib.matlab import...Weird!
I will try to perform the same installation on another WinXP computer,
to be sure the problem is not related to incompatibilities with other
softwares installed on my laptop, or some registery entries, and keep
the list informed of the results of this test.
Best regards,
Greg.
From: Philippe B. <pb...@pa...> - 2004年06月24日 06:40:55
Todd Miller <jm...@st...> =E9crit :
> > I just tried to install matplotlib on a WinXP computer, after a
> > successfull install on Linux.
> > The problem I encounter is the following (transcript of an
> > interractive session):=20
> > Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
> > on win32
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import matplotlib
> > >>> matplotlib.use("TkAgg")
> > >>> from matplotlib.matlab import *
> > Assertion failed: ob_refcnt =3D=3D 0, file CXX/cxx_extensions.cxx, li=
ne
> > 1031
> I tried this configuration on Windows 2000 Pro and it worked fine.
> I haven't tried this configuration on Windows XP yet... I'll try later
> to see if I can reproduce the problem.
I tried this code with WinXP version 5.1 and python 2.3.2, and I
have not problem it's Ok :-)
 Philippe Bouige

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