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






Showing 13 results of 13

From: Darren D. <dd...@co...> - 2005年07月26日 22:00:30
On Tuesday 26 July 2005 01:11 pm, Mark Bakker wrote:
> I have the same experience that eps files seem to be much larger than
> you expect, or than produced by other programs for similar plots.
> Is it maybe because fonts are embedded in the eps file?
> Anybody know?
It is because the fonts are embedded in the eps file.
-- 
Darren
From: Brandon K. <ki...@ca...> - 2005年07月26日 21:49:48
Attachments: matplotlibtest.py
Hi John,
 Thanks again for the quick responce. Sorry about not doing the 
simple test earlier. I installed the latest version this time
and used the script you suggested (.py file is attached). Here's the output:
C:\proj\compclust\win32\compclustshell>C:\Python23\python.exe 
matplotlibtest.py
--verbose-helpful
matplotlib data path C:\Python23\share\matplotlib
$HOME=C:\Documents and Settings\King
CONFIGDIR=C:\Documents and Settings\King\.matplotlib
loaded rc file C:\Python23\share\matplotlib\matplotlibrc
matplotlib version 0.83.1
verbose.level helpful
interactive is False
platform is win32
numerix Numeric 23.8
font search path ['C:\\Python23\\share\\matplotlib']
Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1031
This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
-Brandon King
P.S. Thank you for the information about the documented API changes! =o)
John Hunter wrote:
>>>>>>"Brandon" == Brandon King <ki...@ca...> writes:
>>>>>> 
>>>>>>
>
> Brandon> Hi John, Thanks for the quick reply. In this case we are
> Brandon> using windows, to make a windows build of our code. I
> Brandon> removed site-packages/matplotlib and re-installed it. I
> Brandon> had to install version 0.80, because an API change in
> Brandon> either .81 or .82 broke some of our code and we haven't
> Brandon> had a chance to fix that. I ran our script as you
> Brandon> said... here's the output with the same error:
>
>You can still install 0.83 and test with that (later you can revert to
>the older version if need be). This will provide helpful diagnostic
>information. So once again, please remove site-packages/matplotlib
>and install the latest and test with a minimal script, eg
>
> import pylab
> pylab.plot([1,2,3])
> pylab.show()
>
>with the verbose-helpful flags.
>
>Note also you can see http://matplotlib.sf.net/API_CHANGES for the
>migration path from 0.80 to 0.83. It's likely as simple as a search
>and replace from set to setp, or something like that. The API is
>fairly stable and all changes are documented there.
>
>JDH
>
>
> 
>
From: John H. <jdh...@ac...> - 2005年07月26日 21:36:42
>>>>> "Brandon" == Brandon King <ki...@ca...> writes:
 Brandon> Hi John, Thanks for the quick reply. In this case we are
 Brandon> using windows, to make a windows build of our code. I
 Brandon> removed site-packages/matplotlib and re-installed it. I
 Brandon> had to install version 0.80, because an API change in
 Brandon> either .81 or .82 broke some of our code and we haven't
 Brandon> had a chance to fix that. I ran our script as you
 Brandon> said... here's the output with the same error:
You can still install 0.83 and test with that (later you can revert to
the older version if need be). This will provide helpful diagnostic
information. So once again, please remove site-packages/matplotlib
and install the latest and test with a minimal script, eg
 import pylab
 pylab.plot([1,2,3])
 pylab.show()
with the verbose-helpful flags.
Note also you can see http://matplotlib.sf.net/API_CHANGES for the
migration path from 0.80 to 0.83. It's likely as simple as a search
and replace from set to setp, or something like that. The API is
fairly stable and all changes are documented there.
JDH
From: Brandon K. <ki...@ca...> - 2005年07月26日 21:11:10
Hi John,
 Thanks for the quick reply. In this case we are using windows, to 
make a windows build of our code.
I removed site-packages/matplotlib and re-installed it. I had to install 
version 0.80, because an API change
in either .81 or .82 broke some of our code and we haven't had a chance 
to fix that.
 I ran our script as you said... here's the output with the same error:
C:\>C:\Python23\python.exe compclustweb-local.py --verbose-helpful
matplotlib data path C:\Python23\share\matplotlib
loaded rc file C:\Python23\share\matplotlib\.matplotlibrc
matplotlib version 0.80
verbose.level helpful
interactive is False
platform is win32
numerix Numeric 23.8
font search path ['C:\\Python23\\share\\matplotlib']
Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1031
This application has requested the Runtime to terminate it in an unusual 
way.
Please contact the application's support team for more information.
Most of our code (all python code) is open source, so if you want to 
look at it you can.
The only problem is that do to the powers that be, some of c code is 
only available in binary forms
(were working on open sourcing that as well). Let me know if your 
interested.
Thank you for your help!
-Brandon King
John Hunter wrote:
>>>>>>"Brandon" == Brandon King <ki...@ca...> writes:
>>>>>> 
>>>>>>
>
> Brandon> Hi All, I ran into the following error:
>
> Brandon> Assertion failed: ob_refcnt == 0, file
> Brandon> CXX\cxx_extensions.cxx, line 1031
>
>I assume you are using win32.
>
>Please remove site-packages/matplotlib and reinstall the latest
>version. Then run your test script with
>
> > python myscript.py --verbose-helpful
>
>and if the error persists, post any output.
>
>Thanks,
>JDH
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>_______________________________________________
>Matplotlib-users mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
> 
>
From: John H. <jdh...@ac...> - 2005年07月26日 20:26:26
>>>>> "Brandon" == Brandon King <ki...@ca...> writes:
 Brandon> Hi All, I ran into the following error:
 Brandon> Assertion failed: ob_refcnt == 0, file
 Brandon> CXX\cxx_extensions.cxx, line 1031
I assume you are using win32.
Please remove site-packages/matplotlib and reinstall the latest
version. Then run your test script with
 > python myscript.py --verbose-helpful
and if the error persists, post any output.
Thanks,
JDH
From: Brandon K. <ki...@ca...> - 2005年07月26日 20:21:54
Hi All,
 I ran into the following error:
Assertion failed: ob_refcnt == 0, file CXX\cxx_extensions.cxx, line 1031
I searched google and found the e-mail post from 2004年06月23日 which I've included
at the bottom of this e-mail. I was wondering if anyone has figured out the 
problem? I'm guessing this is still likely to be a bug related to matplotlib, 
but I don't know for sure.
What I do know is that why I try to import matplotlib directly into python,
I don't get the error (see code below).
 > >>> import matplotlib
 > >>> matplotlib.use("TkAgg")
 > >>> from matplotlib.pylab import *
But when we run our program which uses matplotlib, we get that error. I'll try to debug
our program and figure out where it seems to be crashing. If it's in matplotlib code, 
I'll dig in deeper to try to figure out where. I'll post again when I have more information.
I mainly wanted to give everyone a heads up and also see if anyone can give me some pointers.
-Brandon King
On Wed, 2004年06月23日 at 12:42, Gregory Lielens wrote:
 > Hello All,
 > 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): 
 > 
 > ---
 > C:\Python23>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.
 > >>> import matplotlib
 > >>> matplotlib.use("TkAgg")
 > >>> from matplotlib.matlab import *
 > Assertion failed: ob_refcnt == 0, file CXX/cxx_extensions.cxx, line
 > 1031
 > 
 > This application has requested the Runtime to terminate it in an
 > unusual way.
 > Please contact the application"s support team for more information.
 > 
 > C:\Python23>
 > 
 > ---
 > 
 > This work on Linux, and I can not find any hint in the doc to a
 > backend/python interpreter incompatibility explaining this error.
 > 
 > I use numarray version 0.9 (win installer), python 2.3.4 (as shown in
 > the session transcript), and matplotlib 0.54.2, last windows installer
 > (the 2004年06月08日 21:54:42 build which I think correct some problems
 > with numarray)
 > 
 > Now I am wondering if I do something I shouldn"t, if my system or
 > installation is responsible, or if it is a bug in this particular
 > matplotlib distribution...Any idea? 
From: Mark B. <ma...@gm...> - 2005年07月26日 17:11:37
I have the same experience that eps files seem to be much larger than
you expect, or than produced by other programs for similar plots.
Is it maybe because fonts are embedded in the eps file?
Anybody know?
Thanks, Mark
From: John H. <jdh...@ac...> - 2005年07月26日 16:42:50
>>>>> "Christopher" == Christopher Hart <chr...@gm...> writes:
 Christopher> Effectively, I have a situation where I have multiple
 Christopher> "traces" that I would like to display. Each trace
 Christopher> requires a separate subplot with a different Y-axis,
 Christopher> but all subplots should share the exact same X-axis.
 Christopher> I'd like to be able to interactively explore these
 Christopher> plots without fear of the subplots becoming
 Christopher> out-of-sync.
Use the sharex or sharey attribute of the Axes
 ax1 = subplot(211)
 ax1.plot(something)
 ax2 = subplot(212, sharex=ax1)
 ax2.plot(something, else)
See examples/shared_axis_demo.py for a complete example. Now when you
pan or zoom on either subplot, the two x axes remain in sync.
Neat stuff! Thanks to Baptiste Carvello for providing this feature.
JDH
From: Christopher H. <chr...@gm...> - 2005年07月26日 16:36:50
Hi,
I was wondering if there is an "easy" way of linking the x-axis (or
y-axis for that matter) of two subplots. Using the "classic" toolbar
you can select to have pan and zoom events effect all or a specific
subset of axis. Can you do the same using the "toolbar2" mode? Is
there a function to also provide this functionality programmatically,
so if I zoom or pan one subplot, the other subplots follow suite.
Effectively, I have a situation where I have multiple "traces" that I
would like to display. Each trace requires a separate subplot with a
different Y-axis, but all subplots should share the exact same X-axis.
 I'd like to be able to interactively explore these plots without
fear of the subplots becoming out-of-sync.
Thanks,
Chris
From: Steve S. <el...@gm...> - 2005年07月26日 08:21:14
N. Volbers wrote:
> 
>> Hmmm now that you mention antialiasing ... I turned it off in my 
>> .matplotlibrc but my plots (GTKAgg on Linux) are still antialiased. I 
>> had the same problem on Win (TkAgg) but didn't bother too much. I 
>> remember that there was a discussion before about this. I'm using mpl 
>> 0.81. Would upgrading fix this issue?
> 
> 
> 
> I tested the python script on my mpl, version 0.83.1 with no custom 
> matplotlibrc. To my surprise, I got the result you were talking about. 
> Then I opened the resulting eps with gv on linux. There is an option 
> "antialias", which when you turn it on, will cause this color mixing.
> 
> To demonstrate this, I wrote a little gnuplot script that produces a 
> similar output. If you look at the attached file with gv and toggle 
> antialiasing, you will notice the same effect as with mpl.
Yes I can varify that (on Win) with gsview (where turning off AA is done 
by setting Media > Display Settings > 'Text Alpha' and 'Graphics Alpha' 
to 1 bit). OK so it really seems to be no mpl issue. Just like Jhon 
mentioned :)
But one problem remains: I'm not able to turn off AA in .matplotlibrc
If anyone could point me in the right direction (upgrading, other 
backend?) ....
> 
> On a side note, when comparing these two graphs I noticed that the 
> gnuplot generated eps is only 15 K while the mpl generated eps has a 
> size of 300 K. Why is this so?
> 
I guess the dpi setting. But playing around with different dpi settings
	figure(dpi=<number>); plot(...); savefig(...)
or
	plot(...); savefig(...,dpi=<number>)
_always_ produces a .eps of 365 kb.
> Regards,
> 
> Niklas.
> 
cheers,
steve
-- 
Women are like cell phones. They like to be held and talked to, but push 
the wrong button, and you'll be disconnected.
From: N. V. <mit...@we...> - 2005年07月26日 05:43:11
Attachments: overlay.gp overlay2.eps
> Hmmm now that you mention antialiasing ... I turned it off in my 
> .matplotlibrc but my plots (GTKAgg on Linux) are still antialiased. I 
> had the same problem on Win (TkAgg) but didn't bother too much. I 
> remember that there was a discussion before about this. I'm using mpl 
> 0.81. Would upgrading fix this issue?
I tested the python script on my mpl, version 0.83.1 with no custom 
matplotlibrc. To my surprise, I got the result you were talking about. 
Then I opened the resulting eps with gv on linux. There is an option 
"antialias", which when you turn it on, will cause this color mixing.
To demonstrate this, I wrote a little gnuplot script that produces a 
similar output. If you look at the attached file with gv and toggle 
antialiasing, you will notice the same effect as with mpl.
On a side note, when comparing these two graphs I noticed that the 
gnuplot generated eps is only 15 K while the mpl generated eps has a 
size of 300 K. Why is this so?
Regards,
Niklas.
From: John H. <jdh...@ac...> - 2005年07月26日 02:13:52
>>>>> "Malte" == Malte Marquarding <Mal...@cs...> writes:
 Malte> Ditto here. Seems to have been introduced somewhere from
 Malte> version > 0.80.
 Malte> version 0.8 works for me. version 0.82 doesn't.
This was a bug introduce in 0.82, and it was fixed in 0.83.
Thanks,
JDH
From: Malte M. <Mal...@cs...> - 2005年07月26日 01:40:31
Ditto here.
Seems to have been introduced somewhere from version > 0.80.
version 0.8 works for me. version 0.82 doesn't.
Cheers,
Malte.

Showing 13 results of 13

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