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




Showing 11 results of 11

From: Darren D. <dd...@co...> - 2005年05月02日 23:57:32
Hi Everyone,
There is a new formatter in ticker.py called NewScalarFormatter. If you have 
scientific notation in your plots, you may like the results. If you would 
like to try it out, you need to change ScalarFormatter->OldScalarFormatter, 
and NewScalarFormatter->ScalarFormatter. It will then be the default for 
linear scale axes. I would appreciate feedback, it will hopefully become the 
default at some point.
Darren
From: Peter G. <pgr...@ge...> - 2005年05月02日 19:03:35
Jonathan Taylor wrote:
>Hi,
>	Please excuse the simple questions.
>
>i) Is it possible to draw step functions in matplotlib, i.e instead of
>joining points with lines, using steps instead. In R
>(http://cran.r-project.org) this would be done with something like,
>type='s'. I can think of a simple hack to do it, but thought it might
>exist in pylab, but couldn't find an example.
> 
>
try giving plot() an options linestyle='steps'. This was modeled on how 
gnuplot does it.
>ii) Masking in imshow: I want to plot a 2d image, but only show a
>particular region, setting the rest black (or some other color). Is
>there a way to get to the RGB data that is output from the colormap to
>explicitly set some regions black? Or maybe change the alpha level in
>these regions?
>
> 
>
i do something similar using the 'fill' command. Does the job.
-- 
Peter Groszkowski Gemini Observatory
Tel: +1 808 9742509 670 N. A'ohoku Place
Fax: +1 808 9359235 Hilo, Hawai'i 96720, USA 
From: Jonathan T. <jon...@st...> - 2005年05月02日 18:38:34
Hi,
	Please excuse the simple questions.
i) Is it possible to draw step functions in matplotlib, i.e instead of
joining points with lines, using steps instead. In R
(http://cran.r-project.org) this would be done with something like,
type='s'. I can think of a simple hack to do it, but thought it might
exist in pylab, but couldn't find an example.
ii) Masking in imshow: I want to plot a 2d image, but only show a
particular region, setting the rest black (or some other color). Is
there a way to get to the RGB data that is output from the colormap to
explicitly set some regions black? Or maybe change the alpha level in
these regions?
Thanks,
Jonathan Taylor
-- 
Jonathan Taylor Tel: 650.723.9230
Dept. of Statistics Fax: 650.725.8977
Sequoia Hall, 137 www-stat.stanford.edu/~jtaylo
390 Serra Mall
Stanford, CA 94305
From: John H. <jdh...@ac...> - 2005年05月02日 18:07:01
>>>>> "Rich" == Rich Drewes <dr...@in...> writes:
 Rich> Beautiful, thanks! I didn't even have to upgrade my 0.80
 Rich> matplotlib.
BTW, Rich, I read your brainlab article in the linux journal (I
subscribe) -- it was very nice. One of the main applications I had in
mind when I wrote the line collections code was efficiently making
spike raster plots, where you have bazillions of independent line
segments. Might be useful in brainlab...
By the way, some people in our group are using p-genesis and a
collaboration with Argonne National Labs (supercomputer) to do large
scale simulations of neocortex.
JDH
From: Rich D. <dr...@in...> - 2005年05月02日 18:01:37
On Mon, 2 May 2005, Darren Dale wrote:
> What a coincidence, I just wrote an example two days ago that you might find 
> useful. You can find it in CVS; look for line_collection.py in the examples 
> directory.
Beautiful, thanks! I didn't even have to upgrade my 0.80 matplotlib.
Rich
From: Darren D. <dd...@co...> - 2005年05月02日 17:31:09
Hi Rich,
On Monday 02 May 2005 12:57 pm, Rich Drewes wrote:
> Hello,
>
> I am trying to show many hundreds to a few thousand *independent* line
> segments efficiently. I can of course make one call to plot() per
> segment, but that is slooow and I am trying to keep up with a C
> application generating the plot data.
>
> As I read the docs for plot(), I can specify multiple points to be
> connected together using array arguments, but in order to specify
> multiple, independent, *disconnected* line segments in one call to plot()
> I would have to use multiple sets of arguments like this:
>
> plot(x1, y1, 'b-', x2, y2, 'r-', x3, y3, 'b-', . . .)
>
> That is as slow as multiple calls to plot and leads to huge argument
> lists.
>
> What would be great would be the ability to specify a marker *list* that
> maps to the segments, rather than just a marker string that is applied to
> all segments in the list. Something like this:
>
> plot([0, 1, 2, 3, 4], [2, 5, 7, 8, 9], ['b-', 'w-', 'b-', 'w-', 'b-'])
>
> Then by changing the color of certain segments to the background color I
> could effectively make many separate segments.
>
> Any thoughts on the wisdom of this? Or a suggestion for doing this with
> the current interface that didn't occur to me?
>
What a coincidence, I just wrote an example two days ago that you might find 
useful. You can find it in CVS; look for line_collection.py in the examples 
directory.
-- 
Darren S. Dale
Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850
dd...@co...
From: Rich D. <dr...@in...> - 2005年05月02日 16:58:01
Hello,
I am trying to show many hundreds to a few thousand *independent* line
segments efficiently. I can of course make one call to plot() per
segment, but that is slooow and I am trying to keep up with a C
application generating the plot data.
As I read the docs for plot(), I can specify multiple points to be
connected together using array arguments, but in order to specify
multiple, independent, *disconnected* line segments in one call to plot()
I would have to use multiple sets of arguments like this:
plot(x1, y1, 'b-', x2, y2, 'r-', x3, y3, 'b-', . . .)
That is as slow as multiple calls to plot and leads to huge argument
lists.
What would be great would be the ability to specify a marker *list* that
maps to the segments, rather than just a marker string that is applied to
all segments in the list. Something like this:
plot([0, 1, 2, 3, 4], [2, 5, 7, 8, 9], ['b-', 'w-', 'b-', 'w-', 'b-'])
Then by changing the color of certain segments to the background color I 
could effectively make many separate segments.
Any thoughts on the wisdom of this? Or a suggestion for doing this with
the current interface that didn't occur to me?
Rich
From: Darren D. <dd...@co...> - 2005年05月02日 01:31:18
On Sunday 01 May 2005 9:28 pm, John Hunter wrote:
> >>>>> "Fernando" == Fernando Perez <Fer...@co...> writes:
>
> Fernando> It's something I wrote long ago, and it also ships in
> Fernando> IPython.numutils. But John was kind enough to fold some
> Fernando> of my numutils pet favorites into pylab a while ago, if
> Fernando> nothing else so I'd shut up and actually start using
> Fernando> matplotlib :)
>
> It actually resides in matplotlib.mlab --- pylab just imports it.
> Since Darren is doing API work, he'll want it from mlab.
>
That's a nifty function, exactly what I am looking for. Thank you! And thank 
you John, you answered my next question.
-- 
Darren S. Dale
Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850
dd...@co...
From: John H. <jdh...@ac...> - 2005年05月02日 01:28:36
>>>>> "Fernando" == Fernando Perez <Fer...@co...> writes:
 Fernando> It's something I wrote long ago, and it also ships in
 Fernando> IPython.numutils. But John was kind enough to fold some
 Fernando> of my numutils pet favorites into pylab a while ago, if
 Fernando> nothing else so I'd shut up and actually start using
 Fernando> matplotlib :)
It actually resides in matplotlib.mlab --- pylab just imports it.
Since Darren is doing API work, he'll want it from mlab.
JDH
From: Fernando P. <Fer...@co...> - 2005年05月02日 01:21:13
Darren Dale wrote:
> On Sunday 01 May 2005 9:04 pm, John Hunter wrote:
> 
>>On 5/1/05, Darren Dale <dd...@co...> wrote:
>>
>>>When I do a=arange(-1,0.0001,.01), a[-1] is equal to something like
>>>2e-17. I
>>
>>Are you sure? I'm getting something different
> 
> 
> Yeah, I'm sure. I just tried reinstalling Numeric without linking to my 
> external linalg libraries (I had reason to suspect this due to a recent 
> discussion on gentoo-science), but the problem persists.
> 
> Fernando, is frange a homegrown function? Where can I find it?
pylab.frange
It's something I wrote long ago, and it also ships in IPython.numutils. But 
John was kind enough to fold some of my numutils pet favorites into pylab a 
while ago, if nothing else so I'd shut up and actually start using matplotlib :)
Best,
f
From: Darren D. <dd...@co...> - 2005年05月02日 01:18:11
On Sunday 01 May 2005 9:04 pm, John Hunter wrote:
> On 5/1/05, Darren Dale <dd...@co...> wrote:
> > When I do a=arange(-1,0.0001,.01), a[-1] is equal to something like
> > 2e-17. I
>
> Are you sure? I'm getting something different
Yeah, I'm sure. I just tried reinstalling Numeric without linking to my 
external linalg libraries (I had reason to suspect this due to a recent 
discussion on gentoo-science), but the problem persists.
Fernando, is frange a homegrown function? Where can I find it?
-- 
Darren S. Dale
Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850
dd...@co...
2 messages has been excluded from this view by a project administrator.

Showing 11 results of 11

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