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





Showing 15 results of 15

From: Eric F. <ef...@ha...> - 2008年06月09日 22:07:58
Bryan Fodness wrote:
> I have copied the new patches.py and axes.py. It fixed the fill, but I 
> still have an axes instance that is not closed.
I don't understand what you mean by this--what is the problem?
> 
> x1, x2, y1, y2 = -4, 4, -4, 4
> ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95')
> ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w')
> ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
> xlim(x1-2,x2+2)
> ylim(y1-2,y2+2)
> 
> Do I need more than the files that I have copied?
I don't know, but in general, copying individual files from svn is very 
risky; changes might have been committed that only work when all 
affected files are updated.
I think that what you may need to do is either learn to build from svn, 
and accept that this is a bleeding edge and you will get cut now and 
then, or stick to unmodified releases, and use workarounds in your own 
code for whatever bugs and shortcomings you stumble over.
Eric
From: Bryan F. <bry...@gm...> - 2008年06月09日 21:33:23
I have copied the new patches.py and axes.py. It fixed the fill, but I
still have an axes instance that is not closed.
x1, x2, y1, y2 = -4, 4, -4, 4
ax1 = axes([0.0, 0.0, 1.0, 1.0], axisbg='0.95')
ax2 = axes([0.2, 0.1, 0.6, 0.8], axisbg='w')
ax2.fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
xlim(x1-2,x2+2)
ylim(y1-2,y2+2)
Do I need more than the files that I have copied?
On Thu, Jun 5, 2008 at 4:19 PM, Eric Firing <ef...@ha...> wrote:
> Bryan,
>
> Thanks for pointing this out. Mike D. has made a change in the svn trunk
> to restore the automatic closing of polygons made with the patches.Polygon
> constructor, which is used by the fill command.
>
> Eric
>
> Bryan Fodness wrote:
>
>> It seems like it does not connect the last point to the first point. This
>> also happens with the matplotlib.patches Polygon.
>> from pylab import fill, xlim, ylim, savefig
>> x1, x2, y1, y2 = -4, 4, -4, 4
>> fill([x1,x2,x2,x1], [y1,y1,y2,y2], fc='None', ec='r')
>> xlim(-5,5)
>> ylim(-5,5)
>> savefig('edge_test')
>>
>>
>> On Thu, Jun 5, 2008 at 1:18 AM, Eric Firing <ef...@ha... <mailto:
>> ef...@ha...>> wrote:
>>
>> Bryan Fodness wrote:
>>
>> I just upgraded to 0.98.0 and recreated a few graphs. I am
>> missing parts of the edges of a fill and polygon. Any suggestions?
>>
>>
>> Please post an illustrative script, as simple as possible.
>>
>> Eric
>>
>>
>>
>>
>> --
>> "The game of science can accurately be described as a never-ending insult
>> to human intelligence." - João Magueijo
>>
>
>
-- 
"The game of science can accurately be described as a never-ending insult to
human intelligence." - João Magueijo
From: Alan G I. <ai...@am...> - 2008年06月09日 21:13:15
On Mon, 9 Jun 2008, T J apparently wrote:
> I need pstricks 
Out of curiosity, what do you use in pstricks that pgf does 
not provide?
Cheers,
Alan Isaac
From: Michael H. <mh...@us...> - 2008年06月09日 20:35:32
I'm having a problem with the bbox keyword to the text() function. The 
code below, for me, results in one postscript file that looks fine, but 
the PNG file has letters outside of the bounding box for most of the 
words I plot.
I'm using matplotlib '0.98pre' on Mac OS X.
import matplotlib
matplotlib.use('agg')
from pylab import *
x = array([6,7,8,9,10])
y = array([6,7,8,9,10])
fig = figure()
plot(x,y,'rx')
hold('on')
fontdict2 = {'fontweight':'light',
 'color': 'k',
 'fontsize':9}
words = ['Hi','Goodbye','What''s this','Aloha','So long, farewell']
for i in range(0,len(x)):
 tx = x[i]
 ty = y[i]
 word = words[i]
 text(tx,ty,word,fontdict2,bbox={'facecolor':'w'})
savefig('textplot.eps')
savefig('textplot.png')
close(fig)
-- 
------------------------------------------------------
Michael Hearne
mh...@us...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
From: Darren D. <dar...@co...> - 2008年06月09日 20:27:45
Hi T J,
On Monday 09 June 2008 04:06:32 pm T J wrote:
> Hi,
>
> I use pstricks frequently, and it has provided an alpha channel
> (provided we eventually use ps2pdf). With matplotlib, when I save to
> eps, I lose all transparency (understandable), but I wonder if it is
> possible to export the picture as a bunch of pstricks commands, which,
> after using ps2pdf, would give transparency.
>
> Yes, I am aware of pdflatex which supports pdf, but I need pstricks
> (and I haven't yet explored pst-pdf). Either way, a pstricks-backend
> would be quite nice! Is this feasible?
I'm sure its feasible, but probably not practical: I don't think there is 
enough demand for a pstricks backend to make it worth the development time 
and the longterm commitment to support it.
Darren
From: T J <tj...@gm...> - 2008年06月09日 20:06:36
Hi,
I use pstricks frequently, and it has provided an alpha channel
(provided we eventually use ps2pdf). With matplotlib, when I save to
eps, I lose all transparency (understandable), but I wonder if it is
possible to export the picture as a bunch of pstricks commands, which,
after using ps2pdf, would give transparency.
Yes, I am aware of pdflatex which supports pdf, but I need pstricks
(and I haven't yet explored pst-pdf). Either way, a pstricks-backend
would be quite nice! Is this feasible?
From: Adam M. <ram...@gm...> - 2008年06月09日 19:28:42
On Thu, Jun 5, 2008 at 8:50 PM, John Hunter <jd...@gm...> wrote:
> On the svn trunk (0.98) there is a
> bug in the apple gcc compiler with our agg extension that causes a
> compiler error if the optimization level is -O3.
Has this been reported to Apple?
Cheers
Adam
From: Charlie M. <cw...@gm...> - 2008年06月09日 17:53:16
 I have had horrible luck with bdist_mpkg for the last several months.
I did poke at the setuptools code and it looks like we just won't be able to
make it happy with a universal binary. The preferred extensions have ppc or
i386 in them depending on your arch. I think the best way to move forward
is to just post binaries for each architecture and not have a universal
build.
 I statically compile in universal builds of libpng and freetype so
end-users don't have to worry about it. I just build these by hand and the
process is documented here:
http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes
- Charlie
On Mon, Jun 9, 2008 at 1:03 PM, Christopher Barker <Chr...@no...>
wrote:
> Charlie Moad wrote:
> > I am not having luck finding docs on this.
>
> setuptools really don't seem to be living up to their (its?) promise.
>
> Would it be hard to go back to *.mpkg binaries? We'd have to do one for
> Apple's python, and one for python.org's, but that should be pretty
> easy, at least for someone running Leopard.
>
> Or is bdist_mpkg not working for MPL anymore?
>
> Charlie, where/how did you get the Universal libs for the dependencies?
>
> -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chr...@no...
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Christopher B. <Chr...@no...> - 2008年06月09日 17:00:02
Charlie Moad wrote:
> I am not having luck finding docs on this.
setuptools really don't seem to be living up to their (its?) promise.
Would it be hard to go back to *.mpkg binaries? We'd have to do one for 
Apple's python, and one for python.org's, but that should be pretty 
easy, at least for someone running Leopard.
Or is bdist_mpkg not working for MPL anymore?
Charlie, where/how did you get the Universal libs for the dependencies?
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Michael D. <md...@st...> - 2008年06月09日 16:16:48
Ondrej Certik wrote:
> On Mon, Jun 9, 2008 at 5:08 PM, John Hunter <jd...@gm...> wrote:
> 
>> On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <on...@ce...> wrote:
>>
>> 
>>> My system wide matplotlib is 0.91.2-2. I tried to install the one from
>>> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
>>> is not possible to generate the docs without numpy 1.1, I'll wait
>>> until it gets into Debian.
>>> 
>> Yes, the docs project is specifically for the 0.98 svn trunk, which
>> requires numpy 1.1
>>
>> I can post some build snapshots on the web ocassionally if people are
>> interested.
>> 
>
> Yes, I am very interested, especially I wanted to see Michael's CSS
> styles. If you could post it on the web somewhere, it'd be awesome.
> 
Honestly there's very little to my style -- it just adds thin lines 
above each class, method, function etc. to make them easier to 
separate. Other than that, it's the stock Sphinx CSS.
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/doc/_static/matplotlib.css?view=log
Cheers,
Mike
From: Ondrej C. <on...@ce...> - 2008年06月09日 16:09:36
On Mon, Jun 9, 2008 at 5:41 PM, John Hunter <jd...@gm...> wrote:
> On Mon, Jun 9, 2008 at 10:23 AM, Ondrej Certik <on...@ce...> wrote:
>
>> In the meantime, I am trying to package numpy 1.1 for Debian, but when
>> I installed it and did "import numpy", I got:
>>
>> ImportError: No module named ma
>
> Make sure you rm -rf the numpy* install dirs. I think people have
> seen similar problems trying to install over old numpys (ditto for mpl
> 0.98)
The peculiar point is that it seems to work normally, but not when I
create the deb package, so it's probably Debian specific. I'll ask on
the numpy list if I won't figure it out myself.
>
> I posted a snapshot of the docs at:
>
> http://matplotlib.sourceforge.net/doc/html/index.html
Thanks, looks good. Very nice docs.
Ondrej
From: John H. <jd...@gm...> - 2008年06月09日 15:41:43
On Mon, Jun 9, 2008 at 10:23 AM, Ondrej Certik <on...@ce...> wrote:
> In the meantime, I am trying to package numpy 1.1 for Debian, but when
> I installed it and did "import numpy", I got:
>
> ImportError: No module named ma
Make sure you rm -rf the numpy* install dirs. I think people have
seen similar problems trying to install over old numpys (ditto for mpl
0.98)
I posted a snapshot of the docs at:
 http://matplotlib.sourceforge.net/doc/html/index.html
JDH
From: Ondrej C. <on...@ce...> - 2008年06月09日 15:23:18
On Mon, Jun 9, 2008 at 5:08 PM, John Hunter <jd...@gm...> wrote:
> On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <on...@ce...> wrote:
>
>> My system wide matplotlib is 0.91.2-2. I tried to install the one from
>> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
>> is not possible to generate the docs without numpy 1.1, I'll wait
>> until it gets into Debian.
>
> Yes, the docs project is specifically for the 0.98 svn trunk, which
> requires numpy 1.1
>
> I can post some build snapshots on the web ocassionally if people are
> interested.
Yes, I am very interested, especially I wanted to see Michael's CSS
styles. If you could post it on the web somewhere, it'd be awesome.
In the meantime, I am trying to package numpy 1.1 for Debian, but when
I installed it and did "import numpy", I got:
ImportError: No module named ma
So now I am going to figure out what's wrong. Anyway, that's why I
prefer proven software in Debian, so that I don't have to fix such
problems to see the docs. :) I need to fix the problem at some point
though anyway, so I'll do it now.
Ondrej
From: John H. <jd...@gm...> - 2008年06月09日 15:08:43
On Mon, Jun 9, 2008 at 10:00 AM, Ondrej Certik <on...@ce...> wrote:
> My system wide matplotlib is 0.91.2-2. I tried to install the one from
> svn, but it requires numpy 1.1, which is not yet in Debian. So if it
> is not possible to generate the docs without numpy 1.1, I'll wait
> until it gets into Debian.
Yes, the docs project is specifically for the 0.98 svn trunk, which
requires numpy 1.1
I can post some build snapshots on the web ocassionally if people are
interested.
JDH
From: Ondrej C. <on...@ce...> - 2008年06月09日 15:00:54
Hi,
I did:
$ svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
$ cd matplotlib/doc
$ ./make.py html
making figs
 building pyplot_formatstr.py
 building dollar_ticks.py
 building pyplot_text.py
 building pyplot_two_subplots.py
 building fig_x.py
 building pyplot_three.py
 building fig_axes_customize_simple.py
 building fig_axes_labels_simple.py
 building pyplot_simple.py
 building pyplot_mathtext.py
all figures made
/var/lib/python-support/python2.5/pygments/plugin.py:39: UserWarning:
Module pygments was already imported from
/var/lib/python-support/python2.5/pygments/__init__.py, but
/var/lib/python-support/python2.5 is being added to sys.path
 import pkg_resources
Sphinx v0.3, building html
trying to load pickled env... not found
building [html]: targets for 24 source files that are out of date
updating environment: 24 added, 0 changed, 0 removed
reading... api/artist_api api/index api/pyplot_api reST markup error:
/home/ondra/repos/matplotlib/doc/api/pyplot_api.rst:1100: (SEVERE/4)
Unexpected section title or transition.
****************
My system wide matplotlib is 0.91.2-2. I tried to install the one from
svn, but it requires numpy 1.1, which is not yet in Debian. So if it
is not possible to generate the docs without numpy 1.1, I'll wait
until it gets into Debian.
Thanks,
Ondrej

Showing 15 results of 15

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