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

Showing 8 results of 8

From: mdekauwe <mde...@gm...> - 2010年12月12日 22:45:00
Hi thanks for the link thats interesting though I would perhaps rather not
learn a new set of commands just for one plot. Though it seems from my
searching that this might be the only route!
cheers,
Martin
Arthur M. Greene wrote:
> 
> On 12/09/2010 05:42 PM, mdekauwe wrote:
>>
>> Hi,
>>
>> Has anyone ever managed to draw a taylor diagram in Matplotlib? For
>> example
>> like this
>>
>> http://www.mathworks.com/matlabcentral/fx_files/20559/2/taylordiag_fig.jpg
>>
>> Cheers,
>>
>> Martin
> 
> Not sure whether Matplotlib can do this, but it can be done with CDAT, 
> another Python-based library: http://www2-pcmdi.llnl.gov/cdat
> 
> HTH,
> 
> AMG
> 
> -----------------
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://old.nabble.com/Taylor-diagram-tp30421393p30441386.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Jose G. <sjm...@go...> - 2010年12月12日 17:51:17
I was wondering if there is an easy way to combine two vectors (x and y) 
into a single object to be ploted with the plot() method in matplotlib.
Untill now, I did something like:
import matplotlib.pyplot as plt
x = np.nplinspace(0,5,1000)
y = np.ones_like(x)
plt.plot(x,y) # need an object here
plt.show()
But I would like to use plt.plot(my_object, 'r').
I tried to combine x and y in lists of lists, NumPy matrices, with zip, 
etc...but it only plots a collection of plots.
Thanks a lot in advance.
From: Russell O. <ro...@uw...> - 2010年12月12日 16:16:02
I've boiled it down to nearly nothing as a script attached to this bug report:
<https://sourceforge.net/tracker/?func=detail&atid=560720&aid=3124990&group_id=80706>
it simply creates an Axis and then regularly shifts the x axis limits and calls canvas.draw() to display the change. (It also reports memory usage.) You can further simplify the script by commenting out the limes that alter the x axis limits, but then the display does not change (though matplotlib still leaks memory as long as canvas.draw is still called).
I will try ax.clear(). Thanks.
-- Russell
On Dec 12, 2010, at 8:08 AM, Friedrich Romstedt wrote:
> 2010年12月12日 Russell Owen <ro...@uw...>:
>> Simply creating a blank Axes and calling canvas.draw() leaks memory -- even without displaying any data or shifting the x axes.
> 
> Okay, as a workaround have you tried ax.clear()?
> 
> So the example script provided by you can be boiled down further?
> 
> I'm using ax.clear() in a layered approach very extensively and have
> never noticed memory leaks with this. I'm having a Layer object which
> can be fed by data, and when the data changes, it automatically will
> trigger an ax.clear() in the host stack, and then everything is
> redrawn. Not the fastest, but fast enough.
> 
> Friedrich
From: Friedrich R. <fri...@gm...> - 2010年12月12日 16:08:45
2010年12月12日 Russell Owen <ro...@uw...>:
> Simply creating a blank Axes and calling canvas.draw() leaks memory -- even without displaying any data or shifting the x axes.
Okay, as a workaround have you tried ax.clear()?
So the example script provided by you can be boiled down further?
I'm using ax.clear() in a layered approach very extensively and have
never noticed memory leaks with this. I'm having a Layer object which
can be fed by data, and when the data changes, it automatically will
trigger an ax.clear() in the host stack, and then everything is
redrawn. Not the fastest, but fast enough.
Friedrich
From: Abdul R. <pr...@li...> - 2010年12月12日 07:55:38
hi all
 i am new to networkx and Matplotlib. I downloaded networkx1.3 under python 2.7.1 for windows xp. when i tried to install matplotlib, it requires python 2.6 only. What shall i do in this situation? kindly suggest me to have successful installation of matplotlib. Awaiting for your replies. thanking you in advance.
With Warm Wishes and Regards
 ____
A. Abdul Rasheed, M.C.A., M.E., Ph.D.,
Assistant Professor,
Department of Computer Applications,
Valliammai Engineering College,
SRM Nagar, Kattankulathur - 603 203.
Kancheepuram District. Tamil Nadu. INDIA.
Contact: 91 - 44 - 27454784 Ext: 451 (O) / 996 23 000 55
 		 	 		 
From: Søren N. <sor...@gm...> - 2010年12月12日 06:19:14
Hi,
I have an animated plot and I'm having trouble updating the tick labels
after I blit new data to the canvas. I've looked through the documentation
and it's not clear to me how I can update the x and y axis ticks during an
animation. Anyone here know how to do this?
Best,
Soren
From: Russell O. <ro...@uw...> - 2010年12月12日 03:13:25
I am sort of adding data points; what I'm really doing is appending data to a python list and setting the data in the Line object to that list. The list gets shortened every once in awhile to keep the amount of data from getting too large.
It turns out the leak is in canvas.draw(), which I call whenever I shift the graph in time (by changing the limits on the x axis); if I don't call canvas.draw() the time shift is not displayed. Simply creating a blank Axes and calling canvas.draw() leaks memory -- even without displaying any data or shifting the x axes.
Regards,
-- Russell
On Dec 11, 2010, at 1:32 PM, Friedrich Romstedt wrote:
> 2010年12月1日 Russell E. Owen <ro...@uw...>:
>> I'm seeing a nasty memory leak in my strip chart widget using matplotlib
>> 1.0, TkAgg and Mac OS X 10.5
>> 
>> I've posted a minimal version here:
>> <http://www.astro.washington.edu/users/rowen/python/MinimalStripChartWdg.
>> py>
>> 
>> It doesn't seem to matter if I use the animation API or not (the example
>> does not).
>> 
>> Any ideas?
> 
> Hmm, you're adding points right? I remember one time I had a similar
> timeline updating each second or so, and after 10 hr it took memory of
> the order of Gigabytes (iirc) ... and it took seconds to refresh the
> plot ... took me some time to figure it out that the plotting was the
> culprit ...
> 
> hth, fwiw,
> Friedrich
From: John <jmd...@gm...> - 2010年12月12日 00:24:10
Hi all,
I have set up an event handler and function to perform actions when a 
user presses certain keys in the plot window. The function needs access 
to variables that are in the main function. How do I pass these 
variables to the function.
In OnKeyPress, ImageNumber and Li are objects in the main program. Any 
ideas on how to pass them? Thanks
plt.connect('key_press_event',OnKeyPress)
 def OnKeyPress(self,event):
 print 'button= ',event.key, event.xdata, event.ydata
 if event.key == 'm':
 ImageNumber = ImageNumber + 1
 if event.key == 'n':
 ImageNumber = ImageNumber - 1
 rawimage = Li.GetImage(ImageNumber)
 plt.imshow(rawimage)
 plt.title("Image number %3d" % (ImageNumber))
 plt.draw()

Showing 8 results of 8

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