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






Showing 6 results of 6

From: Tom J. <tj...@gm...> - 2007年09月23日 21:25:17
On 9/23/07, Tom Johnson <tj...@gm...> wrote:
>
>
> Also, it seems like there needs to be an extra keyword or option. Suppose
> someone wanted a white facecolor in the (usetex=True) EPS file. It doesn't
> seem like this is currently possible. It would be nice if I could specify:
>
> savefig(file, facecolor=None, edgecolor=None)
It would also be nice if we could specify the axis background color to be
None as well (again, perhaps only useful when creating an EPS)...when using
the plot command.
From: yadin B. R. <con...@ya...> - 2007年09月23日 21:01:59
=0Ahi !=0Alets say i have an array of x,y 100 points and at each=0Apoint i=
 have a correspoinding magnitude(of electric field) i want to=0Agenerate a =
contour plot of these intensity and if posible show contourn lines =0Ahow c=
an i do these please any thing to start.....=0Aan example will be very help=
full=0A=0A=0A----- Mensaje original ----=0ADe: "matplotlib-users-request@li=
sts.sourceforge.net" <mat...@li...>=0APar=
a: mat...@li...=0AEnviado: domingo, 23 de septiem=
bre, 2007 22:06:00=0AAsunto: Matplotlib-users Digest, Vol 16, Issue 24=0A=
=0ASend Matplotlib-users mailing list submissions to=0A matplotlib-users=
@lists.sourceforge.net=0A=0ATo subscribe or unsubscribe via the World Wide =
Web, visit=0A https://lists.sourceforge.net/lists/listinfo/matplotlib-us=
ers=0Aor, via email, send a message with subject or body 'help' to=0A ma=
tpl...@li...=0A=0AYou can reach the person =
managing the list at=0A mat...@li...=0A=
=0AWhen replying, please edit your Subject line so it is more specific=0Ath=
an "Re: Contents of Matplotlib-users digest..."=0A=0A=0AToday's Topics:=0A=
=0A 1. Re: Screen location (John Hunter)=0A 2. Re: Screen location (Chr=
istopher Barker)=0A 3. Re: creating a timeline (John Hunter)=0A 4. Lege=
nd colours for multiple histograms (Ed Schofield)=0A 5. Re: Legend colour=
s for multiple histograms (Jouni K. Sepp?nen)=0A 6. three-d contour plot(=
intensity or arrow plot) (yadin Bocuma Rivas)=0A 7. Rv: three-d contour p=
lot(intensity or arrow plot)=0A (yadin Bocuma Rivas)=0A 8. Re: Rv: t=
hree-d contour plot(intensity or arrow plot)=0A (Jouni K. Sepp?nen)=
=0A=0A=0A------------------------------------------------------------------=
----=0A=0AMessage: 1=0ADate: 2007年9月21日 11:45:23 -0500=0AFrom: "John =
Hunter" <jd...@gm...>=0ASubject: Re: [Matplotlib-users] Screen locati=
on=0ATo: "Yo mismo Hotmail" <miq...@gm...>=0ACc: matplotlib-users@li=
sts.sourceforge.net=0AMessage-ID:=0A <88e473830709210945m2656ae4apb17dec=
9f8...@ma...>=0AContent-Type: text/plain; charset=3DISO-8859-1=
=0A=0AOn 9/21/07, Yo mismo Hotmail <miq...@gm...> wrote:=0A> Dear Jo=
hn,=0A>=0A> First of all, thanks for your response. When I try this=0A>=0A>=
 fig =3D figure()=0A> fig.canvas.manager.window.move(100,400)=0A>=0A> pyth=
on tells me that window has no attribute move. It's strange because I=0A> c=
an choose many differents attributes like=0A=0AWell, the example I posted w=
as for a *gtk* window, not a tk window.=0AYou will need to look at the API =
for the tk window to make the correct=0Acall. We do not provide an abstrac=
t API across the GUI windows we=0Autilize internally. We give you access =
to the widget, and if you=0Awant to make GUI specific calls on it, good luc=
k, but this is not=0Aencouraged or supported.=0A=0AJDH=0A=0AJDH=0A=0A=0A=0A=
------------------------------=0A=0AMessage: 2=0ADate: 2007年9月21日 10:=
06:37 -0700=0AFrom: Christopher Barker <Chr...@no...>=0ASubject: R=
e: [Matplotlib-users] Screen location=0ATo: John Hunter <jd...@gm...>=
=0ACc: Yo mismo Hotmail <miq...@gm...>,=0A matplotlib-users@lists=
.sourceforge.net=0AMessage-ID: <46F...@no...>=0AContent-Type: =
text/plain; charset=3DISO-8859-1; format=3Dflowed=0A=0AJohn Hunter wrote:=
=0A>> fig =3D figure()=0A>> fig.canvas.manager.window.move(100,400)=0A=0A> =
Well, the example I posted was for a *gtk* window, not a tk window.=0A=0AAn=
d, for what it's worth, wx spells it "Move()", with a capital "M".=0A=0A-Ch=
ris=0A=0A=0A-- =0AChristopher Barker, Ph.D.=0AOceanographer=0A=0AEmergency =
Response Division=0ANOAA/NOS/OR&R (206) 526-6959 voice=0A7600 =
Sand Point Way NE (206) 526-6329 fax=0ASeattle, WA 98115 (206) 5=
26-6317 main reception=0A=0AC...@no...=0A=0A=0A=0A------------=
------------------=0A=0AMessage: 3=0ADate: 2007年9月21日 12:54:51 -0500=
=0AFrom: "John Hunter" <jd...@gm...>=0ASubject: Re: [Matplotlib-users=
] creating a timeline=0ATo: "Ryan Krauss" <rya...@gm...>=0ACc: matpl=
otlib-users <mat...@li...>=0AMessage-ID:=0A <8=
8e4...@ma...>=0AContent-Type: =
text/plain; charset=3DISO-8859-1=0A=0AOn 9/20/07, Ryan Krauss <ryanlists@gm=
ail.com> wrote:=0A=0A> which also gets rid of my bottom x axis and leaves t=
ick marks along=0A> the top (see attached). How do I get rid of the top ti=
ck marks, keep=0A> the bottom ones, and get the bottom x-axis back?=0A=0AI =
think this is what you are looking for:=0A=0Afrom pylab import figure, show=
=0A=0Afig =3D figure()=0Aax =3D fig.add_subplot(111)=0A=0Aax.axesFrame.set_=
data((0,0,1), (1,0,0))=0Aax.axesPatch.set_edgecolor('white')=0Aax.xaxis.set=
_ticks_position('bottom')=0Aax.yaxis.set_ticks_position('left')=0A=0Aax.plo=
t(range(10))=0A=0Ashow()=0A=0A=0A=0A------------------------------=0A=0AMes=
sage: 4=0ADate: 2007年9月22日 16:53:57 +0100=0AFrom: "Ed Schofield" <eds=
cho...@gm...>=0ASubject: [Matplotlib-users] Legend colours for multip=
le histograms=0ATo: Mat...@li...=0AMessage-ID:=0A=
 <1b5...@ma...>=0AContent=
-Type: text/plain; charset=3DUTF-8=0A=0AHi all,=0A=0AI'm superimposing hist=
ograms of two data sets on the same axes, using=0Adifferent colours and alp=
ha transparency in the GtkAGG backend to show=0Athe overlapping regions. If=
 I plot a legend as below, the colours in=0Aboth legend entries are the sam=
e. Am I doing something wrong?=0A=0Aimport matplotlib=0Amatplotlib.use('GTK=
Agg')=0Aimport pylab=0Apylab.hist(data1, normed=3DTrue, alpha=3D0.8)=0Apyla=
b.hist(data2, normed=3DTrue, alpha=3D0.5, fc=3D'yellow')=0Apylab.legend(["d=
ata 1", "data 2"])=0Apylab.show()=0A=0AIf I try this instead:=0A=0Apylab.hi=
st(data1, normed=3DTrue, alpha=3D0.8, label=3D"data 1")=0Apylab.hist(data2,=
 normed=3DTrue, alpha=3D0.5, fc=3D"yellow", label=3D"data 2")=0Apylab.legen=
d()=0Apylab.show()=0A=0Athe legend entries are now coloured correctly, but =
there is one label=0Aentry for each bin, which is not particularly useful.=
=0A=0AI'm using the latest SVN version of matplotlib (r3874).=0A=0AI'd appr=
eciate any comments and/or quick workarounds!=0A=0A-- Ed=0A=0A=0A=0A-------=
-----------------------=0A=0AMessage: 5=0ADate: 2007年9月22日 22:22:05 +=
0300=0AFrom: Jouni K. Sepp?nen <jk...@ik...>=0ASubject: Re: [Matplotlib-user=
s] Legend colours for multiple histograms=0ATo: mat...@li...ur=
ceforge.net=0AMessage-ID: <m2l...@ik...>=0AContent-Type: text/plai=
n; charset=3Diso-8859-1=0A=0A"Ed Schofield" <eds...@gm...> writes:=
=0A=0A> If I plot a legend as below, the colours in both legend entries are=
=0A> the same. Am I doing something wrong?=0A=0A> pylab.hist(data1, normed=
=3DTrue, alpha=3D0.8)=0A> pylab.hist(data2, normed=3DTrue, alpha=3D0.5, fc=
=3D'yellow')=0A> pylab.legend(["data 1", "data 2"])=0A=0AHere's a workaroun=
d that probably explains why this is happening:=0A=0A_, _, h1 =3D pylab.his=
t(data1, normed=3DTrue, alpha=3D0.8)=0A_, _, h2 =3D pylab.hist(data2, norme=
d=3DTrue, alpha=3D0.5, fc=3D'yellow')=0Apylab.legend([h1[0], h2[0]], ["data=
 1", "data 2"])=0A=0ABy default, the legend function assigns a legend entry=
 to every patch in=0Athe figure. Perhaps this could be seen as a bug in (hi=
st or) legend, but=0AI don't know how to fix it without introducing difficu=
lties in other=0Acases.=0A=0A-- =0AJouni K. Sepp?nen=0Ahttp://www.iki.fi/jk=
s=0A=0A=0A=0A=0A------------------------------=0A=0AMessage: 6=0ADate: Sun,=
 23 Sep 2007 12:06:50 -0700 (PDT)=0AFrom: yadin Bocuma Rivas <conra2004@yah=
oo.com>=0ASubject: [Matplotlib-users] three-d contour plot(intensity or arr=
ow=0A plot)=0ATo: mat...@li..., vtkusers@vtk.o=
rg=0AMessage-ID: <944...@we...>=0AContent-Ty=
pe: text/plain; charset=3D"iso-8859-1"=0A=0Ahi !=0AI have an array of x,y,z=
 100 points(in tree-d) and at each point i have a correspoinding magnitude(=
of electric field) i want to generate a contour plot of these (intensity an=
d if posible arrowsat every point)=0Ahow can i do these please any thing to=
 start.....=0Aan example will be very helpfull=0A=0A=0A=0A=0A ________=
___________________________________________________________________________=
_=0A?S? un mejor ambientalista!=0AEncuentra consejos para cuidar el lugar d=
onde vivimos. =0Ahttp://telemundo.yahoo.com/promos/me=
jorambientalista.html=0A-------------- next part --------------=0AAn HTML a=
ttachment was scrubbed...=0A=0A------------------------------=0A=0AMessage:=
 7=0ADate: 2007年9月23日 12:20:16 -0700 (PDT)=0AFrom: yadin Bocuma Rivas=
 <con...@ya...>=0ASubject: [Matplotlib-users] Rv: three-d contour pl=
ot(intensity or=0A arrow plot)=0ATo: mat...@li...urceforge.=
net=0AMessage-ID: <553...@we...>=0AContent-T=
ype: text/plain; charset=3D"iso-8859-1"=0A=0Aevery time i try to plot i hav=
e these error =0Ahow can i avoid it?=0ATraceback (most recent call last):=
=0A File "C:/Python24/contour.py", line 9, in -toplevel-=0A import matp=
lotlib.axes3d as p3=0A File "C:\PYTHON24\lib\site-packages\matplotlib\axes=
3d.py", line 26, in -toplevel-=0A import art3d=0A File "C:\PYTHON24\lib=
\site-packages\matplotlib\art3d.py", line 17, in -toplevel-=0A import pr=
oj3d=0A File "C:\PYTHON24\lib\site-packages\matplotlib\proj3d.py", line 21=
, in -toplevel-=0A cross =3D nx.cross=0AAttributeError: 'module' object =
has no attribute 'cross'=0A=0A=0A----- Mensaje reenviado ----=0ADe: yadin B=
ocuma Rivas <con...@ya...>=0APara: mat...@li...urceforg=
e.net; vtk...@vt...=0AEnviado: domingo, 23 de septiembre, 2007 21:06:50=
=0AAsunto: three-d contour plot(intensity or arrow plot)=0A=0Ahi !=0AI have=
 an array of x,y,z 100 points(in tree-d) and at each point i have a corresp=
oinding magnitude(of electric field) i want to generate a contour plot of t=
hese (intensity and if posible arrowsat every point)=0Ahow can i do these p=
lease any thing to start.....=0Aan example will be very helpfull=0A=0A=0A=
=0A=0A =0A?S? un mejor asador!=0AAprende todo sobre asados en:=0A=0Aht=
tp://telemundo.yahoo.com/promos/mejorasador.html=0A=0A=0A=0A=0A=0A ___=
___________________________________________________________________________=
______=0A?S? un mejor fot?grafo!=0APerfecciona tu t?cnica y encuentra las m=
ejores fotos. =0Ahttp://telemundo.yahoo.com/promos/me=
jorfotografo.html=0A-------------- next part --------------=0AAn HTML attac=
hment was scrubbed...=0A=0A------------------------------=0A=0AMessage: 8=
=0ADate: 2007年9月23日 22:57:27 +0300=0AFrom: Jouni K. Sepp?nen <jks@iki=
.fi>=0ASubject: Re: [Matplotlib-users] Rv: three-d contour plot(intensity o=
r=0A arrow plot)=0ATo: mat...@li...=0AMessa=
ge-ID: <m26...@ik...>=0AContent-Type: text/plain; charset=3Diso-88=
59-1=0A=0Ayadin Bocuma Rivas <con...@ya...>=0Awrites:=0A=0A> every t=
ime i try to plot i have these error =0A=0AUnfortunately, the 3D plotting c=
apabilities of matplotlib are not being=0Amaintained. A list of Python soft=
ware for 3D plotting can be found at=0A=0Ahttp://new.scipy.org/Topical_Soft=
ware#head-8f49c45f696b5833d161aab95c22e5d495658a44=0A=0A-- =0AJouni K. Sepp=
?nen=0Ahttp://www.iki.fi/jks=0A=0A=0A=0A=0A------------------------------=
=0A=0A---------------------------------------------------------------------=
----=0AThis SF.net email is sponsored by: Microsoft=0ADefy all challenges. =
Microsoft(R) Visual Studio 2005.=0Ahttp://clk.atdmt.com/MRT/go/vse012000007=
0mrt/direct/01/=0A=0A------------------------------=0A=0A__________________=
_____________________________=0AMatplotlib-users mailing list=0AMatplotlib-=
us...@li...=0Ahttps://lists.sourceforge.net/lists/listinfo/=
matplotlib-users=0A=0A=0AEnd of Matplotlib-users Digest, Vol 16, Issue 24=
=0A************************************************=0A=0A=0A=0A=0A=0A=0A=0A=
 _____________________________________________________________________=
_______________=0A=A1S=E9 un mejor fot=F3grafo!=0APerfecciona tu t=E9cnica =
y encuentra las mejores fotos. =0Ahttp://telemundo.ya=
hoo.com/promos/mejorfotografo.html 
From: Tom J. <tj...@gm...> - 2007年09月23日 20:47:45
Hello,
When using usetex=True and
 savefig(file, facecolor='w', edgecolor='w')
The behavior of the generated EPS file is more like:
 facecolor=None
 edgecolor='w'
That is, the image's facecolor is tranparent...taking on the background
color of the latex document---while the edgecolor is definitely white.
This seems inconsistent to me, and I was wondering if there was a quick
solution. I actually like that the facecolor is transparent (or
nonexistent)...and I would like the same to hold for the edgecolor. As of
now, I have an ugly white border around my image.
Also, it seems like there needs to be an extra keyword or option. Suppose
someone wanted a white facecolor in the (usetex=True) EPS file. It doesn't
seem like this is currently possible. It would be nice if I could specify:
savefig(file, facecolor=None, edgecolor=None)
Thoughts?
\documentclass{article}
\usepackage{pstricks}
\usepackage{graphicx}
\begin{document}
\psframe*[linecolor=blue](-10in,-10in)(10in,10in)
\includegraphics{test}
from matplotlib import rc, rcParams
rc('text', usetex=True)
rc('ps', usedistiller='xpdf')
from pylab import *
subplot(111,axisbg='red')
plot(range(10))
savefig('test.eps', facecolor='white', edgecolor='white')
From: <jk...@ik...> - 2007年09月23日 20:05:59
yadin Bocuma Rivas <con...@ya...>
writes:
> every time i try to plot i have these error 
Unfortunately, the 3D plotting capabilities of matplotlib are not being
maintained. A list of Python software for 3D plotting can be found at
http://new.scipy.org/Topical_Software#head-8f49c45f696b5833d161aab95c22e5d495658a44
-- 
Jouni K. Seppänen
http://www.iki.fi/jks
From: yadin B. R. <con...@ya...> - 2007年09月23日 19:20:28
every time i try to plot i have these error =0Ahow can i avoid it?=0ATraceb=
ack (most recent call last):=0A File "C:/Python24/contour.py", line 9, in =
-toplevel-=0A import matplotlib.axes3d as p3=0A File "C:\PYTHON24\lib\s=
ite-packages\matplotlib\axes3d.py", line 26, in -toplevel-=0A import art=
3d=0A File "C:\PYTHON24\lib\site-packages\matplotlib\art3d.py", line 17, i=
n -toplevel-=0A import proj3d=0A File "C:\PYTHON24\lib\site-packages\ma=
tplotlib\proj3d.py", line 21, in -toplevel-=0A cross =3D nx.cross=0AAttr=
ibuteError: 'module' object has no attribute 'cross'=0A=0A=0A----- Mensaje =
reenviado ----=0ADe: yadin Bocuma Rivas <con...@ya...>=0APara: matpl=
otl...@li...; vtk...@vt...=0AEnviado: domingo, 23 =
de septiembre, 2007 21:06:50=0AAsunto: three-d contour plot(intensity or ar=
row plot)=0A=0Ahi !=0AI have an array of x,y,z 100 points(in tree-d) and at=
 each point i have a correspoinding magnitude(of electric field) i want to =
generate a contour plot of these (intensity and if posible arrowsat every p=
oint)=0Ahow can i do these please any thing to start.....=0Aan example will=
 be very helpfull=0A=0A=0A=0A=0A =0A=A1S=E9 un mejor asador!=0AAprende=
 todo sobre asados en:=0A=0Ahttp://telemundo.yahoo.com/promos/mejorasador.h=
tml=0A=0A=0A=0A=0A=0A ________________________________________________=
____________________________________=0A=A1S=E9 un mejor fot=F3grafo!=0APerf=
ecciona tu t=E9cnica y encuentra las mejores fotos. =
=0Ahttp://telemundo.yahoo.com/promos/mejorfotografo.html 
From: yadin B. R. <con...@ya...> - 2007年09月23日 19:07:03
hi !=0AI have an array of x,y,z 100 points(in tree-d) and at each point i h=
ave a correspoinding magnitude(of electric field) i want to generate a cont=
our plot of these (intensity and if posible arrowsat every point)=0Ahow can=
 i do these please any thing to start.....=0Aan example will be very helpfu=
ll=0A=0A=0A=0A=0A ____________________________________________________=
________________________________=0A=A1S=E9 un mejor ambientalista!=0AEncuen=
tra consejos para cuidar el lugar donde vivimos. =0Ah=
ttp://telemundo.yahoo.com/promos/mejorambientalista.html 

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