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

Showing 4 results of 4

From: Peter G. <pgr...@ge...> - 2004年04月12日 20:50:25
John Hunter wrote:
[snip]
>Here is a sample implementation
>
>from matplotlib.matlab import *
>def segplot(x, y, fmt, maxdelta, **kwargs):
> """
> Plot x versus y, breaking the plot at any point where x[i] -
> x[i-1] > maxdelta. kwargs are passed on to plot
> """
> x = asarray(x)
> y = asarray(y)
> d = diff(x)
> lines = []
> ind = nonzero(greater(d, maxdelta))
> ind = ind+1
> if not len(ind):
> lines.extend( plot(x,y,fmt,**kwargs) ) 
> else:
> allind = [0]
> allind.extend(ind)
> allind.append(len(x))
> for i1,i2 in zip(allind[:-1], allind[1:]):
> lines.extend( plot(x[i1:i2], y[i1:i2], fmt, **kwargs) )
> return lines
>
>t = [0,1,2,3,4,5,105,106,107,187, 200, 212, 300, 320]
>s = [1,4,5,3,9,11,-5,-8,3,12, 15, 12, -1, 3]
>segplot(t, s, 'b-o', 40, antialiased=False)
>grid(True)
>show()
>
>I'm inclined not to make this part of plot, since plot processes a
>variable number of arguments it makes it a little difficult.
>Certainly doable, but I'm hesitant to put too much on plot because it
>might become unwieldy. But a new function, like segment plot, would
>be easy enough to include.
>
>Any suggestions for a name, or additional functionality?
> 
>
Thanks for the quick solution. I think the name is just fine.
Best,
-- 
Peter Groszkowski Gemini Observatory
Tel: +1 808 974-2509 670 N. A'ohoku Place
Fax: +1 808 935-9235 Hilo, Hawai'i 96720, USA
From: John H. <jdh...@ac...> - 2004年04月12日 17:44:51
>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@fi...> writes:
 Flavio> Sorry, I meant portable in terms of other hardware
 Flavio> platforms that run Linux but not X, embedded systems for
 Flavio> instance. The situation I had in mind was to run
 Flavio> matplotlib in a linux PDA (which are becoming more and
 Flavio> more popular). The Sharp Zaurus, for instance, runs a kind
 Flavio> of Qt, for which there is no matplotlib backend. All linux
 Flavio> systems, big and small, have console interfaces. Although
 Flavio> I think it may be possible to install GTK or Wx on a PDA
 Flavio> like the Zaurus, It would not be the the best way to go
 Flavio> due to limitations of memory and other resources. A
 Flavio> console Backend wold not only be lighter and faster, but
 Flavio> could go wherever python can go, independently of heavy
 Flavio> GUI systems.
 Flavio> Another solution would be a backend for Qt embedded
 Flavio> library, but it does need framebuffer as far as I know...
 Flavio> And it's not only PDAs, matplotlib could run on
 Flavio> cellphones, set-top boxes, industrial controlers, etc.
 Flavio> Again it's just a thought, I am a big fan of Links... ;)
I'm not familiar with Links....
As far as embedded devices, one possibility is the paint / libart
backend. libart was designed to be small and had the embedded market
in mind, if I recall correctly. A quick google search appears to
indicate that libart is ported to Zaurus. Also, if the embedded
device has a recent cxx compiler, it should be able to compile agg.
The reason I mention this is that it is fairly straightforward to mix
and match an image backend (gd, libart/paint, agg) with a gui toolkit.
Witness GTKAgg, TkAgg, WxAgg (forthcoming) and GTKGD. So it might be
easier (and more general purpose) to implement QtPaint or QtAgg than
it would be to implement a libsvga backend. One thing I've
encountered with the variety of image backends (ps, paint, agg and gd)
is that it is very difficult to support all the features you want on
all the backends.
 ps - no alpha channel or antialised drawing
 gd - no alpha and a color allocation bug; only 256 colors
 libart - a pesky clipping bug that the libart author has been
 unresponsive on; no subpixel rendering. no freetype2 support in
 paint (yet)
 agg - no significant 2D limitations.
 
The same can be said for the native GUI drawing backends GTK and WX.
My push to encourage people to use one of the agg backends for GUI or
PNG is to get around the maintenance hassles associated with trying to
support all these features across many backends. So my preference
would be to 1) implement QTAgg and 2) try and port agg to the embedded
device. The latter may not satisfy the size constraints for embedded
devices (_backend_agg.so is around 600K on my box).
But if you don't think these arguments are persuasive let me know.
Especially if you would be willing to implement (and maintain) a
console backend!
JDH
From: John H. <jdh...@ac...> - 2004年04月12日 16:40:44
>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@fi...> writes:
 Flavio> Hi John, Have you thought about writing a backend for
 Flavio> matplotlib that would display the plot in the console (no
 Flavio> X)? It could use the linux framebuffer or the SVGALib,
 Flavio> just like Links.
 Flavio> It would make it much more portable.
What do you mean by portable? Both the linux framebuffer and svgalib
are, as far as I know, linux only.
JDH
From: Flavio C. C. <fcc...@ci...> - 2004年04月12日 16:04:36
If you're not intereste in creating a text file,
The best way to go, is with pickle.dump and pickle.load
Check the python docs about them.
cheers,
Fl=E1vio
On Thu, 2004年04月08日 at 17:38, Randy Heiland wrote:
> What's the easiest way to write a Numeric array to a file?
> Thanks! --Randy
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
3 messages has been excluded from this view by a project administrator.

Showing 4 results of 4

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