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



Showing 10 results of 10

From: John H. <jdh...@ac...> - 2006年05月22日 17:15:55
Those of you who are PSF mentors for the summer of code, could I ask
you to take a look at Edin's resubmitted proposal for enhancing
mathtext
http://code.google.com/soc/psf/app.html?csaid=edin.salkovic%40gmail.com%3A048a69f9%3A96f5f65b
Google will be funding 25 PSF projects, and this one will need a
higher score to make the cut. I think the work he is proposing will
be a nice enhancement to the mathtext facility which is used by both
matplotlib and chaco, and since one of Edin's goals is to refactor
mathtext into a standalone project, it should see some usage beyond
those two projects.
Thanks!
JDH
From: Jochen V. <vo...@se...> - 2006年05月22日 15:11:42
Hello,
I am trying to generate a short movie using matplotlib.
The core of my code looks like
 for i in range(1,len(t)):
 U0,U1x,U1y,H1 =3D list(sig[i,:])
 for x in arange(0,1.001,0.05):
 for y in arange(0,1.001,0.05):
 xx,yy=3Dtrace(U0,U1x,U1y,H1,x,y)
 ts[(x,y)].set_data(xx,yy)
 for j in range(0,nobs):
 tr[j].center =3D (obs[i,2*j],obs[i,2*j+1])
 savefig("f%04d.png"%i)
where the entries of the dictionary 'ts' are lines and the entries of
the dictionary 'tr' a patches (circles). Moving the lines around with
set_data works quite fine, but moving the patches by setting 'center'
does not.
My question: how do I move a patch?
Many thanks,
Jochen
--=20
http://seehuhn.de/
From: Clovis G. <cl...@pe...> - 2006年05月22日 14:55:15
After waiting for some days for some suggestion, I would like to ask if
there is some suggestion or "starting-point" for solving this issue.
Sincerely yours,
clovis
John Hunter wrote:
>>>>>>"clovis" == clovis <cl...@pe...> writes:
>>>>>> 
>>>>>>
>
> clovis> All, I followed up the 'memory leak' discussion in the
> clovis> sourceforge list and I know the Matplotlib-FAQ entry about
> clovis> this subject. I've also seen John Hunter's post about the
> clovis> need of matching figure/close pairs. Anyway, I still feel
> clovis> that there are problems in this subject, which can be
> clovis> exposed by the following script (for Windows, but can
> clovis> easily be adapted to Unix).
>
> clovis> As can be seen by the results (also given below), there is
> clovis> a steady increase in memory usage which is not recovered!
>
>If I recall correctly, there is a known leak in tkagg when you create
>multiple canvases, and this is in Tk and not matplotlib proper. Todd
>may have something to add here. 
>
>JDH
>
>
>-------------------------------------------------------
>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: Gene C. <gc...@br...> - 2006年05月22日 13:21:52
Work around: break up the data into pieces and plot() the pieces rather
than the entire data set.
Gene Carter wrote:
> Greetings,
> 
> I believe I've hit the bug noted in the 2004年07月28日 matplotlib-users post
> with a subject "plot dense and large array, AGG limit?".
> 
> I'm wondering if there has been a work around identified. I looked for a
> follow up in the matplotlib lists as well as the vector-agg-general list.
> 
> I've tried to use cairo, but I'm having problems getting my mathtext to
> work, even after setting my numerix to numpy.
> 
> Any help would be appreciated as I'd like to use matplotlib to make
> figures for a manuscript I'm writing.
> 
> Gene Carter
> 
> 
From: John H. <jdh...@ac...> - 2006年05月22日 13:20:13
>>>>> "Eric" == Eric Emsellem <ems...@ob...> writes:
 Eric> Hi, I have now a problem when using setp, please try this
 Eric> (maybe it is wrong, but it worked before...). Thanks for
 Eric> any help here Eric
This was a bug I introduced into svn last night and fixed this
morning. make sure you are using revision 2410 or later.
JDH
From: Eric E. <ems...@ob...> - 2006年05月22日 13:19:17
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
ok: it didn't work for me because I was trying brute force (showing my
bad knowledge of python), so changing it using p.set_edgecolor ...<br>
Indeed it should work with setp... <br>
<br>
Except that now I have a systematic error trying to use setp. (same as
the one indicated in "BUG ..." I just sent)<br>
<br>
thanks<br>
Eric<br>
<br>
John Hunter wrote:
<blockquote cite="mid...@pe..."
 type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <blockquote type="cite">
 <pre wrap="">"Eric" == Eric Emsellem <a class="moz-txt-link-rfc2396E" href="mailto:ems...@ob...">&lt;ems...@ob...&gt;</a> writes:
 </pre>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 </blockquote>
 <pre wrap=""><!---->
 Eric&gt; Hi, how would you easily set the EDGEcolor of the bars
 Eric&gt; (using "bar")? I see a "set/get_edgecolor" in the output of
 Eric&gt; the bar command (p1 = bar ...) but I cannot manage to change
 Eric&gt; the edgecolors of my bars...
Works for me...
from pylab import subplot, show, setp, nx
ax = subplot(111)
p = ax.bar(range(10), range(10))
setp(p, edgecolor='red', facecolor='green', linewidth=4)
show()
 </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
====================================================================
Eric Emsellem <a class="moz-txt-link-abbreviated" href="mailto:ems...@ob...">ems...@ob...</a>
 Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France <a class="moz-txt-link-freetext" href="http://www-obs.univ-lyon1.fr/eric.emsellem">http://www-obs.univ-lyon1.fr/eric.emsellem</a>
====================================================================
</pre>
</body>
</html>
From: Eric E. <ems...@ob...> - 2006年05月22日 13:16:30
Hi,
I have now a problem when using setp, please try this (maybe it is 
wrong, but it worked before...).
Thanks for any help here
Eric
---------------------------------------------------------------------------
scatter([0,1],[0,1]) 
xticklabels = get(gca(), 'xticklabels')
setp(xticklabels, fontsize='large')
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most 
recent call last)
/home/science/Sauron/AnalysisKin/Paper7/<ipython console>
/usr/lib/python2.4/site-packages/matplotlib/pylab.py in setp(*args, 
**kwargs)
 1444
 1445 def setp(*args, **kwargs):
-> 1446 ret = _setp(*args, **kwargs)
 1447 draw_if_interactive()
 1448 return ret
/usr/lib/python2.4/site-packages/matplotlib/artist.py in setp(h, *args, 
**kwargs)
 488
 489 ret = []
--> 490 for o in h:
 491 for s, val in funcvals:
 492 s = s.lower()
/usr/lib/python2.4/site-packages/matplotlib/cbook.py in flatten(seq, 
scalarp)
 96 if scalarp(item): yield item
 97 else:
---> 98 for subitem in flatten(item, scalarp):
 99 yield subitem
 100
/usr/lib/python2.4/site-packages/matplotlib/cbook.py in flatten(seq, 
scalarp)
 93 and Recipe 1.12 in cookbook
 94 """
---> 95 for item in seq:
 96 if scalarp(item): yield item
 97 else:
TypeError: iteration over non-sequence
From: John H. <jdh...@ac...> - 2006年05月22日 13:05:00
>>>>> "Eric" == Eric Emsellem <ems...@ob...> writes:
 Eric> Hi, how would you easily set the EDGEcolor of the bars
 Eric> (using "bar")? I see a "set/get_edgecolor" in the output of
 Eric> the bar command (p1 = bar ...) but I cannot manage to change
 Eric> the edgecolors of my bars...
Works for me...
from pylab import subplot, show, setp, nx
ax = subplot(111)
p = ax.bar(range(10), range(10))
setp(p, edgecolor='red', facecolor='green', linewidth=4)
show()
From: Eric E. <ems...@ob...> - 2006年05月22日 13:00:19
HI,
sorry I just found the way to change the edgecolor of my "bars" by just 
changing the global option:
rc('patch', edgecolor='r')
before I use
p1 = bar(......)
cheers
Eric
Eric Emsellem wrote:
> Hi,
>
> how would you easily set the EDGEcolor of the bars (using "bar")?
> I see a "set/get_edgecolor" in the output of the bar command (p1 = bar 
> ...) but I cannot manage to change the edgecolors of my bars...
>
> thanks
>
> Eric
>
-- 
====================================================================
Eric Emsellem ems...@ob...
 Centre de Recherche Astrophysique de Lyon
9 av. Charles-Andre tel: +33 (0)4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 (0)4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem
====================================================================
From: Eric E. <ems...@ob...> - 2006年05月22日 12:44:16
Hi,
how would you easily set the EDGEcolor of the bars (using "bar")?
I see a "set/get_edgecolor" in the output of the bar command (p1 = bar 
...) but I cannot manage to change the edgecolors of my bars...
thanks
Eric

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