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 6 results of 6

From: John H. <jdh...@ac...> - 2006年05月16日 20:07:01
>>>>> "Christopher" == Christopher Barker <Chr...@no...> writes:
 Christopher> That I don't know. The Agg renderer certainly can do
 Christopher> a nice job with gradients, but I don't know if MPL
 Christopher> support that.
You can emulate gradients using matplotlib images -- either with colormaps or
defining your own rgba endpoints for the gradients. Here's an example
of an axes background gradient
 from pylab import figure, show, nx, cm
 fig = figure()
 xmin, xmax = xlim = 0,2
 ymin, ymax = ylim = -1,1
 ax = fig.add_subplot(111, xlim=xlim, ylim=ylim,
 autoscale_on=False)
 X = [[.6, .6],[.7,.7]]
 ax.imshow(X, interpolation='bicubic', cmap=cm.Blues,
 extent=(xmin, xmax, ymin, ymax), alpha=1)
 t = nx.arange(xmin, xmax,0.01)
 ax.plot(t, nx.sin(2*nx.pi*t), lw=2, color='black')
 show()
Likewise, you can make your own gradient bars charts:
 from pylab import figure, show, nx, cm
 def gbar(ax, x, y, width=0.5, bottom=0):
 X = [[.6, .6],[.7,.7]]
 for left,top in zip(x, y):
 right = left+width
 ax.imshow(X, interpolation='bicubic', cmap=cm.Blues,
 extent=(left, right, bottom, top), alpha=1)
 fig = figure()
 xmin, xmax = xlim = 0,10
 ymin, ymax = ylim = 0,1
 ax = fig.add_subplot(111, xlim=xlim, ylim=ylim,
 autoscale_on=False)
 X = [[.6, .6],[.7,.7]]
 ax.imshow(X, interpolation='bicubic', cmap=cm.copper,
 extent=(xmin, xmax, ymin, ymax), alpha=1)
 N = 10
 x = nx.arange(N)+0.25
 y = nx.mlab.rand(N)
 gbar(ax, x, y, width=0.7)
 ax.set_aspect('normal')
 show()
Viewer discretion is advised.
If you want to get clever, you can define patterns and fills this way
too. We should add an interface to expose this functionality more
readily...
JDH
From: Christopher B. <Chr...@no...> - 2006年05月16日 16:58:54
Bryan wrote:
> Hi all, I am working on a UI design, and I just found out about 
> matplotlib. I would like to learn if some of the following graphs are 
> possible using matplotlib with wxPython
If you want to use MPL with wxPython like that, be sure to check out wxmpl.
> http://www.geocities.com/belred1/image1.jpg
> 
> Does anyone know if matplotlib has rich charting functionality with 
> gradients and shading that could provide the same experience as the 
> performance charts on the right.
I don't think it has the nifty shading. Other than that, it can do it all.
> How difficult would this be to implement?
That I don't know. The Agg renderer certainly can do a nice job with 
gradients, but I don't know if MPL support that.
-Chris
-- 
Christopher Barker, Ph.D.
Oceanographer
 		
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chr...@no...
From: Charlie M. <cw...@gm...> - 2006年05月16日 16:01:15
http://www.scipy.org/Cookbook/Matplotlib/Animations
You can get pretty good framerates using the blitting technique
described in the link above.
On 5/14/06, Allan Noriel Estrella <all...@gm...> wrote:
> Can I implement realtime plotting in matplotlib? The data will be coming
> from the serial port. The plotting will be similar to an oscilloscope. Ca=
n
> you suggest matplotlib modules I can use for this particular application.
> Thanks
>
From: John H. <jdh...@ac...> - 2006年05月16日 15:25:32
>>>>> "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
From: David T. <dav...@gm...> - 2006年05月16日 09:45:39
Hi happy matplolib users,
 Very, very nice feature, this zooming functionality is perfect.
Thanks again to the matplotlib team for the great work.
I simply have one question:
 How can I use this zooming key in my app. which is embedding matplotlib
in GTK ?
David
2006年5月16日, sophana <so...@zi...>:
>
> I made a patch on the sourceforge site that does what you need.
> you can select which layer(s) you interact with (move/pan)
>
> Daniel McQuillen wrote:
>
>
> Hi everybody. Question about multiple Y axes...
>
>
> I've seen a few posts regarding using the trick of laying one axes over
> top of the other to simulate a second Y axis -- as demonstrated in the
> matplotlib example file two_scales.py.
>
> However, in the application I'm building, the user should be able to
> select points ("outliers") for either axis. With the current approach, th=
e
> user can't select the bottom graph's points (or pan or zoom it).
>
>
> Is there a way to bring the bottom graph into "focus"?
>
> Thanks in advance for any tips.
>
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Daniel McQuillen
> Oakland, CA
>
>
>
From: sophana <so...@zi...> - 2006年05月16日 08:34:51
I made a patch on the sourceforge site that does what you need.
you can select which layer(s) you interact with (move/pan)
Daniel McQuillen wrote:
>
> Hi everybody. Question about multiple Y axes...
>
> I've seen a few posts regarding using the trick of laying one axes 
> over top of the other to simulate a second Y axis -- as demonstrated 
> in the matplotlib example file two_scales.py.
>
> However, in the application I'm building, the user should be able to 
> select points ("outliers") for either axis. With the current approach, 
> the user can't select the bottom graph's points (or pan or zoom it).
>
> Is there a way to bring the bottom graph into "focus"?
>
> Thanks in advance for any tips.
>
>
> =====================================
> Daniel McQuillen
> Oakland, CA
>

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