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

Showing 6 results of 6

From: Nicolas R. <Nic...@in...> - 2011年09月18日 17:26:01
The interactive plot has been done using the AntTweakBar library and is not really user friendly. You can view the source from the demos directory:
http://code.google.com/p/glumpy/source/browse/demos/atb.py
Also, note that glumpy is not a replacement for matplotlib but rather a testbed for a future OpenGL backend to be integrated into matplotlib.
Nicolas
On Sep 18, 2011, at 14:00 , Stef Mientki wrote:
> hi Nicolas,
> 
> looks very interesting.
> 
> I was considering to move from MatPlotLib to guiqwt,
> because of it's easy interactive plots.
> But I see glumpy has it too.
> Can show the source code for the interactive plot in your examples ?
> 
> thanks,
> stef
> 
> 
> On 17-09-2011 19:22, Nicolas Rougier wrote:
>> 
>> 
>> Hi folks,
>> 
>> I am pleased to announce a new release of glumpy, a small python library for the (very) fast vizualization of numpy arrays, (mainly two dimensional) that has been designed with efficiency in mind. If you want to draw nice figures for inclusion in a scientific article, you’d better use matplotlib but if you want to have a sense of what’s going on in your simulation while it is running, then maybe glumpy can help you.
>> 
>> 
>> Download and screenshots at: http://code.google.com/p/glumpy/
>> 
>> Nicolas
>> 
>> 
>> ------------------------------------------------------------------------------
>> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
>> http://p.sf.net/sfu/rim-devcon-copy2
>> 
>> 
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2_______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Andreas M. <and...@gm...> - 2011年09月18日 17:00:32
A leading space is missing in the output of 
 
 mpl.text(1, 1, '% .3f' % 1.234)
if used within the TeX backend. Whereas it is not
missing in the plain non-TeX backend.
Here is an example:
 import pylab as mpl
 #mpl.rcParams['text.usetex'] = False
 mpl.rcParams['text.usetex'] = True
 mpl.plot([1,3,2])
 mpl.text(1, 2.0, '% .3f' % 1.234)
 mpl.text(1, 1.9, '% .3f' % -1.234)
 mpl.show()
Ciao
Andreas
From: Stef M. <ste...@gm...> - 2011年09月18日 12:00:16
hi Nicolas,
looks very interesting.
I was considering to move from MatPlotLib to guiqwt,
because of it's easy interactive plots.
But I see glumpy has it too.
Can show the source code for the interactive plot in your examples ?
thanks,
stef
On 17-09-2011 19:22, Nicolas Rougier wrote:
>
> Hi folks,
>
> I am pleased to announce a new release of glumpy, a small python library for the (very) fast 
> vizualization of numpy arrays, (mainly two dimensional) that has been designed with efficiency in 
> mind. If you want to draw nice figures for inclusion in a scientific article, you'd better use 
> matplotlib but if you want to have a sense of what's going on in your simulation while it is 
> running, then maybe glumpy can help you.
>
>
> Download and screenshots at: http://code.google.com/p/glumpy/
>
> Nicolas
>
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> http://p.sf.net/sfu/rim-devcon-copy2
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: John L. <joh...@sb...> - 2011年09月18日 03:53:00
On Sat, 2011年09月17日 at 19:19 -0500, John Hunter wrote:
> The artist tutorial covers drawing directly to a figure
> 
> http://matplotlib.sourceforge.net/users/artists.html#figure-container
> 
> I believe you could adapt the patches.FancyArrow to the same approach.
Thanks, John! I got JJ's approach to work, but I also tried it your way
and it seems to me to generate tidier code. You don't have to deal with
clip boxes either.
Example:
[code]
aspect = 23.0 / 8.0 # (These are my figure dimensions, X / Y) 
tr = fig.transFigure
w, h = 0.008, 0.02
ha = FancyArrow(0.0175, 0.03, 0.645, 0.0, width=w, head_length=h, \
 transform=tr)
va = FancyArrow(0.0125, 0.045, 0.0, 0.845, width=w/aspect, \
 head_length=h*aspect, transform=tr)
fig.patches.extend([ha, va])
[/code]
So it would appear that the special methods add_axes and add_subplot
exist only so that the "stateful" Matlab-like interface can be informed
as to which Axes object is "current." For any other object type, you
just add it to the list of the appropriate type in the Figure object.
From: <ob...@hu...> - 2011年09月18日 01:00:24
Hello.
I have some data with corresponding date value (Y-M-D) and having 
hard time to understand how MPL works with dates.
I see it uses Python datetime, but I just can't figure how to make 
plots when some date data is missing.
Considering above, is there some easy way to make, lets say, 2 
variables plot where each variable could have 1-2 missing values?
Does date (abscissa) values have to follow some rules so that MPL 
could recognize it as date?
Cheers
From: John H. <jd...@gm...> - 2011年09月18日 00:19:27
On Fri, Sep 16, 2011 at 4:10 PM, John Ladasky
<joh...@sb...> wrote:
> Now I would like to add the axis lines and arrows. In fact, I would
> prefer a FancyArrow object.
>
> I can see how to add non-text objects to an Axes, e.g.:
>
> ax = fig.add_subplot(111)
> ax.add_patch(my_arrow)
>
> But that isn't my goal here. I want to add lines to the FIGURE, outside
> of any Axes. Does anyone know how to accomplish this? Thanks!
The artist tutorial covers drawing directly to a figure
http://matplotlib.sourceforge.net/users/artists.html#figure-container
I believe you could adapt the patches.FancyArrow to the same approach.
JDH

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