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





Showing results of 489

<< < 1 .. 18 19 20 (Page 20 of 20)
From: John H. <jd...@gm...> - 2009年08月02日 05:00:56
On Sat, Aug 1, 2009 at 7:32 PM, Alan G Isaac<ala...@gm...> wrote:
> On 8/1/2009 4:07 PM Thomas Robitaille apparently wrote:
>> Since matplotlib is about to hit 0.99,
>
>
> Which reminds me, was there a decision on subplot2grid etc?
> <URL:http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5077fp242c7598ee9fb2c9%40mail.gmail.com>
There are lots of good suggestions in that thread -- on this issue,
all the best people will be at scipy and/or participating in the
sprint (Andrew who wrote the mpl sizer toolkit, JJ who does more
strange and wonderful things than anyone, Ryan May who has thought
through the issues and has done a lot of great work). So we'll
definitely bring it up and see if we can do something about it. There
are two pieces to this thread: the non-pythonic 1 based addressing of
the current subplot command ("don't blame me, talk to the mathworks"),
and the ability to easily specify column or row spans across the grid.
 The former is a minor wart that is unlikely to change, the latter is
a significant feature that we should definitely support. Maybe you can
join us via skype if not in person in Pasadena, and we can try an
improve the current implementation. I don't imagine adding support
for spans would be too hard,
JDH
From: Neil P. <mat...@ke...> - 2009年08月02日 04:50:40
Hi,
I've developed a GTK application under linux (debian etch) which plots 
my simulation data really nicely. I'm now trying to implement some 
caching to avoid a) loading datafiles which are 'recent' and b) 
replotting and redrawing data which is 'recent' (assuming this would be 
quicker!). I have managed the former rather easily using a fifo type 
structure, and the latter could be easy if I had some idea how to cache 
the buffer, pixels or whatever is most convenient of the canvas. For 
example, could I have multiple canvases, and switch which one is 
displayed in the gtk container? or would it be better to save the 'data' 
(pixels? vector graphics?) of the canvas somewhere, and copy that 
backwards and forwards? Any ideas?
Thanks,
-- 
Neil Pilgrim
From: Alan G I. <ala...@gm...> - 2009年08月02日 00:32:58
On 8/1/2009 4:07 PM Thomas Robitaille apparently wrote:
> Since matplotlib is about to hit 0.99, 
Which reminds me, was there a decision on subplot2grid etc?
<URL:http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5077fp242c7598ee9fb2c9%40mail.gmail.com>
Alan Isaac
From: Andres L. <and...@ut...> - 2009年08月01日 21:05:15
Thank You,
but now I have another little annoying issue. Besides clabel I add some 
text manually to my plot with plt.text and sometimes the clabel and 
plt.text overlap, and no matter in which order I plot them, the string 
from clabel is always above the one from plt.text, but I would like, if 
the manually added text would be more visible.
So, is there a way to prevent the clabel text from appearing above other 
text in my plot? I can make a little workaround by getting clabel 
coordinates and then trying to guess if they overlap with my text and 
then set the particular clabel invisible. But at the moment it seems I 
need to do additional calculations to get the actual size of text boxes 
and maybe there is a more elegant solution, still?
Best regards,
Andres
Jae-Joon Lee wrote:
> The clable command returns a list of Text instances.
> You need call set_bbox method for each of them.
>
> tl = clabel(...)
> for t in tl:
> t.set_bbox(dict(fc="y"))
>
> For clabels, which are often rotated, it may better to use fancy box
> style (the default bbox is not rotated even though the text is).
>
> t.set_bbox(dict(boxstyle="round",fc="y"))
>
> Regards,
>
> -JJ
>
>
> On Sat, Aug 1, 2009 at 5:32 AM, Andres Luhamaa<and...@ut...> wrote:
> 
>> Hello!
>> Is it possible to add a bbox behind a clabel, like one can do with a
>> plt.text or something that would look similar?
>>
>> Best regards,
>> Andres
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>> 
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
From: David K. <dkd...@gm...> - 2009年08月01日 20:36:49
Hello, quick question about the quotes_historical_yahoo function in
matplotlib.finance. Typically, you need to define a start and end date for a
given ticker to pull the data. Is there a way to pull ALL of the historical
data without knowing when the stock or ETF started trading? I'm new to
matplotlib and this list (and python, in general), so apologies if this has
been asked before. If there is a searchable archive of messages, I'd
appreciate a pointer URL.
Many thanks!
dk
From: Thomas R. <tho...@gm...> - 2009年08月01日 20:08:15
John Hunter-4 wrote:
> 
> On Thu, Feb 12, 2009 at 2:13 PM, Ryan May <rm...@gm...> wrote:
>> On Wed, Feb 11, 2009 at 7:30 PM, John Hunter <jd...@gm...> wrote:
>>>
>>> On Wed, Feb 11, 2009 at 2:49 PM, Ryan May <rm...@gm...> wrote:
> 
>> Well, I checked in an example that shows the functionality. The problem
>> is
>> that using these events doesn't follow the standard event API. You don't
>> connect using figure.canvas.mpl_connect() (it doesn't like the names
>> 'xlim_changed' and 'ylim_changed'), but rather you use
>> Axes.callbacks.connect(). Also, the an event object is not passed into
>> the
>> callback, but rather the originating axes instance. Are these events
>> relics
>> to the older version of event handling that haven't been moved to the
>> present?
>>
>> Otherwise, should I add a special section to the event handling docs to
>> handle these?
> 
> 
> Thanks for the example -- you are right that this is a 'legacy' event
> callback outside the regular event framework. So it doesn't really
> belong in the event handling chapter but may merit a quick note there.
> Alternatively, we could rather easily draft up a special event
> (NavigationEvent?) that *does* work in the regular event handling
> framework. The quirk is that the events are handled at the canvas
> level, so it would be difficult to register for a single axes, but one
> could get a NavigationEvent if the limits of any of the axes in the
> figure were updated, and use the inaxes attribute to process it. If
> this, or some variant of it, seems like a good idea I'm happy to add
> it.
> 
> JDH
> 
Hi,
Since matplotlib is about to hit 0.99, I am bringing up an old discussion
about the 'callback' events 'xlim_changed' and 'ylim_changed' which are only
available through the
callbacks.connect('xlim_changed',dostuff)
API. Is there now a way to do this through the 'standard' mpl_connect() API?
If not, would it be easy to implement this?
Thanks,
Tom
-- 
View this message in context: http://www.nabble.com/executing-function-when-view-interval-changes-tp21963695p24772257.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Jae-Joon L. <lee...@gm...> - 2009年08月01日 19:05:04
On Sat, Aug 1, 2009 at 9:32 AM, Tommy Grav<tg...@ma...> wrote:
> Thanks, I downloaded and installed 0.99rc1 and that worked beautifully.
> Might be good to put this explicitly on the webpages as it is very
> confusing.
This is not just a issue of axes_grid toolkit. The current mpl
document on the home page (including the gallery) reflects what is in
the svn development tree.
Yes, I agree that this is confusing. I guess there have been similar
issues raised before, but I can't remember what the resolution was.
John, is it possible to have two different set of documents on the
web? One for the stable release, and the other for development
version? This seems to be one of the obvious solutions to me.
Regards,
-JJ
>
> Tommy
>
> On Aug 1, 2009, at 9:27 AM, Jae-Joon Lee wrote:
>
>> The axes_grid toolkit is recently added to the matplotlib, and you
>> need to have development version of matplotlib.
>> You may try the matplotlib 0.99rc1 released a few days ago
>>
>> http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
>>
>> or you may try to install from the svn
>>
>> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
>>
>> -JJ
>>
>>
>>
>> On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tg...@ma...> wrote:
>>> i am trying to use the example at
>>> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>>>
>>> but axes_grid is not in mpl_toolkits for the standard matplotlib
>>> build. Where
>>> can I get the axes_grid tools?
>>>
>>> Cheers
>>> Tommy
>>>
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports
>>> 2008 30-Day
>>> trial. Simplify your report design, integration and deployment -
>>> and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Mat...@li...
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Mark R. <mru...@gm...> - 2009年08月01日 17:05:53
Hi,
I'm writing a script to plot data being read from a serial connection in
real time. I'm trying to use an idle_event callback to continually read the
incoming data and plot it. The problem is that the callback is only getting
invoked once. I found this page:
http://www.scipy.org/Cookbook/Matplotlib/Animations, which suggests using
backend-specific stuff. This is intended to be a quick-and-dirty thing
though so I was really hoping to avoid that. Here's my code:
def OnIdle(event):
 global xData
 global yData
 data = ReadSerialData()
 if data != None:
 yData.append(data)
 if len(yData) > GRAPH_WINDOW_SIZE:
 del yData[0]
 else:
 xData.append(len(xData))
 line.set_xdata(xData)
 line.set_ydata(yData)
 pylab.draw()
 # end if data != None
# end OnIdle
if __name__ == '__main__':
 pylab.ion()
 fig = pylab.figure()
 ax = fig.add_subplot(1,1,1)
 line = ax.add_line(pylab.Line2D([], []))
 ax.set_ylim(0, 100)
 ax.set_xlim(0, GRAPH_WINDOW_SIZE)
 fig.canvas.mpl_connect('idle_event', OnIdle)
 pylab.show()
# end __name__ == '__main__'
Oh btw, I'm positive that ReadSerialData is not blocking and that it's
making it through the whole idle handler. I'm running on 64 bit Linux with
Python 2.6. According to --verbose-helpful, I'm using matplotlib version
0.98.5.2 and GTKAgg version 2.14.1. Am I doing something wrong or do I
really need to go backend-specific?
Thanks,
Mark
From: Tommy G. <tg...@ma...> - 2009年08月01日 14:32:56
Thanks, I downloaded and installed 0.99rc1 and that worked beautifully.
Might be good to put this explicitly on the webpages as it is very 
confusing.
Tommy
On Aug 1, 2009, at 9:27 AM, Jae-Joon Lee wrote:
> The axes_grid toolkit is recently added to the matplotlib, and you
> need to have development version of matplotlib.
> You may try the matplotlib 0.99rc1 released a few days ago
>
> http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
>
> or you may try to install from the svn
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
>
> -JJ
>
>
>
> On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tg...@ma...> wrote:
>> i am trying to use the example at
>> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>>
>> but axes_grid is not in mpl_toolkits for the standard matplotlib
>> build. Where
>> can I get the axes_grid tools?
>>
>> Cheers
>> Tommy
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 
>> 2008 30-Day
>> trial. Simplify your report design, integration and deployment - 
>> and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
From: Jae-Joon L. <lee...@gm...> - 2009年08月01日 13:43:37
The clable command returns a list of Text instances.
You need call set_bbox method for each of them.
tl = clabel(...)
for t in tl:
 t.set_bbox(dict(fc="y"))
For clabels, which are often rotated, it may better to use fancy box
style (the default bbox is not rotated even though the text is).
 t.set_bbox(dict(boxstyle="round",fc="y"))
Regards,
-JJ
On Sat, Aug 1, 2009 at 5:32 AM, Andres Luhamaa<and...@ut...> wrote:
> Hello!
> Is it possible to add a bbox behind a clabel, like one can do with a
> plt.text or something that would look similar?
>
> Best regards,
> Andres
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Kaushik G. <Kau...@hm...> - 2009年08月01日 13:43:13
Hi!
I would like to thank the matplotlib team for the new release. I haven't had the 
courage to deploy it on my main number crunching computer it but I have it on my 
regular computer and it's been fine.
I'm especially excited to see renewed work on the 3D plotting.
I have a quick question: what kind of improvements should I expect to see with 
the macos backend? I ran the 3D example with and without the backend, and things 
seemed qualitatively similar.
Best
-Kaushik
From: Jae-Joon L. <lee...@gm...> - 2009年08月01日 13:28:06
The axes_grid toolkit is recently added to the matplotlib, and you
need to have development version of matplotlib.
You may try the matplotlib 0.99rc1 released a few days ago
http://www.nabble.com/matplotlib-0.99.0-rc1-%3A-call-for-testing-td24760373.html
or you may try to install from the svn
http://matplotlib.sourceforge.net/faq/installing_faq.html#install-svn
-JJ
On Fri, Jul 31, 2009 at 10:39 PM, Tommy Grav<tg...@ma...> wrote:
> i am trying to use the example at
> http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
>
> but axes_grid is not in mpl_toolkits for the standard matplotlib
> build. Where
> can I get the axes_grid tools?
>
> Cheers
>  Tommy
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Andres L. <and...@ut...> - 2009年08月01日 10:37:35
Hello!
Is it possible to add a bbox behind a clabel, like one can do with a 
plt.text or something that would look similar?
Best regards,
Andres
From: Tommy G. <tg...@ma...> - 2009年08月01日 02:40:02
i am trying to use the example at
http://matplotlib.sourceforge.net/examples/axes_grid/simple_axesgrid.html
but axes_grid is not in mpl_toolkits for the standard matplotlib 
build. Where
can I get the axes_grid tools?
Cheers
 Tommy
8 messages has been excluded from this view by a project administrator.

Showing results of 489

<< < 1 .. 18 19 20 (Page 20 of 20)
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 によって変換されたページ (->オリジナル) /