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

Showing 10 results of 10

From: Patrik J. <pat...@fa...> - 2007年08月16日 23:42:04
Hi again,
A related question: I tried to generate my PDF output with the Cairo
backend, which produces correct axis labels but no transparency. My
impression is that Cairo supports transparency, so is this a deficiency
in the backend? Or is there a trick?
Thanks again,
/Patrik
From: Patrik J. <pat...@fa...> - 2007年08月16日 23:41:44
Hi all,
I've been making some plots with transparency and realized that in order
to get a vector output I have to use the PDF backend instead of PS.
However, the PDF plots have axis labels that are messed up. Instead of
showing "10^3" it shows "10_3", ie all exponents are subscripts, and the
axis numbers are at the top instead of the bottom, so they clobber the
graph title. There must be something not working right, because it's not
usable the way it is. Can anyone suggest fixes?
This is with 0.90.0 on a FC6 x86_64 machine.
Thanks,
/Patrik
From: Eric F. <ef...@ha...> - 2007年08月16日 19:59:19
Peter Würtz wrote:
> Hi,
> 
> Sorry this might look like a really stupid question, but I have not been
> able to find an answer in the matplotlib documentation...
Not a stupid question at all--it is more of a feature request.
> 
> When plotting data points using the "o"-style, some points are truncated
> by the axis borders. Is there a way to define some kind of margin
> without changing the x/y range manually?
No, this is something we probably should add. There are other cases 
also where one wants a margin by default.
> 
> So far, I did some kind of workaround:
> (xmin,xmax) = p.xlim()
> xw = xmax - xmin
> p.xlim(xmin - xw*0.05, xmax + xw*0.05)
> 
> Is there a better way than this?
No, it looks to me like you have found a reasonable workaround. One 
could also put this functionality into a custom Locator class, but that 
is more complicated.
Eric
> 
> Thanks,
> Peter
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Peter <pw...@st...> - 2007年08月16日 19:26:35
Hi,
Sorry this might look like a really stupid question, but I have not been
able to find an answer in the matplotlib documentation...
When plotting data points using the "o"-style, some points are truncated
by the axis borders. Is there a way to define some kind of margin
without changing the x/y range manually?
So far, I did some kind of workaround:
(xmin,xmax) = p.xlim()
xw = xmax - xmin
p.xlim(xmin - xw*0.05, xmax + xw*0.05)
Is there a better way than this?
Thanks,
Peter
From: Anthony M. F. <Ant...@co...> - 2007年08月16日 17:19:52
Hi!=20
> 0x9c5a8ac>] >>> set(gca(), xticklabels=3D[]) Traceback (most=20
> recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: set() does not take keyword arguments
>=20
> Can somebody help me understand what goes wrong here?
Python (since the docs were written) now has a built-in type called
'set'. This caused a namespace conflict with pylab's "set" command, so
the pylab "set" command became "setp" for "set property".
So, change the line to:
>>> setp(gca(), xticklabels=3D[])
Cheers,
A>
From: Matthieu B. <mat...@gm...> - 2007年08月16日 16:27:39
Hi,
I think you must type :
set(gca(), 'xticklabels', [])
Matthieu
2007年8月16日, Johann Cohen-Tanugi <co...@sl...>:
>
> hello,
> I must be doing something stupid.... I am trying to test the snippets of
> code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29,
> and I get :
> [cohen@localhost python]$ python
> Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
> [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from pylab import *
> >>> subplot(211)
> <matplotlib.axes.Subplot instance at 0x9c5412c>
> >>> plot([1,2,3],[1,2,3])
> [<matplotlib.lines.Line2D instance at 0x9c5a8ac>]
> >>> set(gca(), xticklabels=[])
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: set() does not take keyword arguments
>
> Can somebody help me understand what goes wrong here?
> thanks,
> Johann
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
From: Johann Cohen-T. <co...@sl...> - 2007年08月16日 16:19:18
hello,
I must be doing something stupid.... I am trying to test the snippets of 
code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29, 
and I get :
[cohen@localhost python]$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> from pylab import *
 >>> subplot(211)
<matplotlib.axes.Subplot instance at 0x9c5412c>
 >>> plot([1,2,3],[1,2,3])
[<matplotlib.lines.Line2D instance at 0x9c5a8ac>]
 >>> set(gca(), xticklabels=[])
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
TypeError: set() does not take keyword arguments
Can somebody help me understand what goes wrong here?
thanks,
Johann
From: bruno <bru...@ia...> - 2007年08月16日 15:41:06
Attachments: rollinggraph.py
in fact that may become clearer with my code.
There are two classes. One does the animation. The other is supposed to 
add a button. The infinite loop is at the end
Bruno
Greg Willden a écrit :
> Hi Bruno,
>
> Which method are you using to do the animation?
> Timer, Idle Event?
>
> If you are using a timer then it is pretty straightforward to start 
> and stop the timer from the handler for the button you added.
>
> I am using wxPython and I've hacked the animation_blit_wx.py example.
>
> You need functions like this:
> timer = wx.Timer(panel,TIMER_ID)
> wx.EVT_TIMER(panel,TIMER_ID, update_line) << Here you bind the timer 
> to your update function
>
> timer.Start(10)
> timer.Stop()
>
>
> Cheers,
> Greg
>
> On 8/16/07, *bruno* <bru...@ia... 
> <mailto:bru...@ia...>> wrote:
>
> Hello,
>
> I am probably reinventing the wheel. I am trying to get "rolling"
> graph
> a la labview with matplotlib. I have more or less managed to get
> what I
> want using the simple animation technique provided by matplotlib. I
> would like now to have a button an the same graph that would enable me
> to stop the program that is in an infinite acquisition loop.
>
> I have managed to use a matplotlib widget with the graph to make it
> print something on a terminal, however I do not see how to make it
> stop
> an infinite loop. I have tried to make the button change the state
> of a
> variable and give the state of this variable a a stop condition to the
> loop. However this doesn't work. In fact the button doesen't seems
> to be
> "listening" during the loop.
>
> Any idea of how I should be doing that ?
>
> Cordially
>
> Bruno
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> <https://lists.sourceforge.net/lists/listinfo/matplotlib-users>
>
>
>
>
> -- 
> Linux. Because rebooting is for adding hardware. 
From: bruno <bru...@ia...> - 2007年08月16日 15:30:15
Hi thanks for the answer. I am not sure to undersand completely the 
question. I based my animation on the example anim.py using the ion() 
function. Is that idle event ?
I will have a look at the wx version an see if I undersand your advice.
If ever you had code that you were willing to share I would be very 
thankfull.
Already many thanks
Bruno
Greg Willden a écrit :
> Hi Bruno,
>
> Which method are you using to do the animation?
> Timer, Idle Event?
>
> If you are using a timer then it is pretty straightforward to start 
> and stop the timer from the handler for the button you added.
>
> I am using wxPython and I've hacked the animation_blit_wx.py example.
>
> You need functions like this:
> timer = wx.Timer(panel,TIMER_ID)
> wx.EVT_TIMER(panel,TIMER_ID, update_line) << Here you bind the timer 
> to your update function
>
> timer.Start(10)
> timer.Stop()
>
>
> Cheers,
> Greg
>
> On 8/16/07, *bruno* <bru...@ia... 
> <mailto:bru...@ia...>> wrote:
>
> Hello,
>
> I am probably reinventing the wheel. I am trying to get "rolling"
> graph
> a la labview with matplotlib. I have more or less managed to get
> what I
> want using the simple animation technique provided by matplotlib. I
> would like now to have a button an the same graph that would enable me
> to stop the program that is in an infinite acquisition loop.
>
> I have managed to use a matplotlib widget with the graph to make it
> print something on a terminal, however I do not see how to make it
> stop
> an infinite loop. I have tried to make the button change the state
> of a
> variable and give the state of this variable a a stop condition to the
> loop. However this doesn't work. In fact the button doesen't seems
> to be
> "listening" during the loop.
>
> Any idea of how I should be doing that ?
>
> Cordially
>
> Bruno
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> <https://lists.sourceforge.net/lists/listinfo/matplotlib-users>
>
>
>
>
> -- 
> Linux. Because rebooting is for adding hardware. 
From: bruno <bru...@ia...> - 2007年08月16日 14:47:15
Hello,
I am probably reinventing the wheel. I am trying to get "rolling" graph 
a la labview with matplotlib. I have more or less managed to get what I 
want using the simple animation technique provided by matplotlib. I 
would like now to have a button an the same graph that would enable me 
to stop the program that is in an infinite acquisition loop.
I have managed to use a matplotlib widget with the graph to make it 
print something on a terminal, however I do not see how to make it stop 
an infinite loop. I have tried to make the button change the state of a 
variable and give the state of this variable a a stop condition to the 
loop. However this doesn't work. In fact the button doesen't seems to be 
"listening" during the loop.
Any idea of how I should be doing that ?
Cordially
Bruno

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