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

Showing 8 results of 8

From: Andrew S. <str...@as...> - 2007年06月13日 18:12:29
signal seeker wrote:
> Bill,
> 
> The problem is I am writing a bunch of diagonistic tools for users who
> do not know anything about unix.
> they just want to type a bunch of commands on a shell and see the plots
> and they hardly know anything fancy like sending processes to the
> background :)
> 
> I guess, I am going to have to use threads or sub processes to spawn new
> plots.
That's exactly what Bill's ezplot is supposed to do. I am sure that he
will appreciate any helping making it easier to just work without the
user having to know or do anything. (I know I will.)
From: signal s. <see...@gm...> - 2007年06月13日 17:53:34
Bill,
The problem is I am writing a bunch of diagonistic tools for users who do
not know anything about unix.
they just want to type a bunch of commands on a shell and see the plots and
they hardly know anything fancy like sending processes to the background :)
I guess, I am going to have to use threads or sub processes to spawn new
plots.
Thanks,
ss
On 6/13/07, Bill Baxter <wb...@gm...> wrote:
>
> On 6/13/07, signal seeker <see...@gm...> wrote:
> >
> > Bill,
> >
> > Thanks for your reply. pylab(ion) is not what I meant. Consider this
> simply
> > script -
> > .....
> > # simple.py
> > from pylab import *
> > plot([1,2,3])
> > show()
> > ....
> >
> > Now, if I do python simple.py on a cmd prompt, this will open up a plot
> > window, but the script won't return until the plot window is closed.
> > I would like simple.py process to end but the plot window to be still
> up. I
> > have users who would like to type one command after another and not have
> to
> > close any of the plot windows created.
>
> I see. In that case, I think you just want
> $ simple.py &
> on unix and
> c:\> start python simple.py
> on Windows.
>
> In both cases you can put those commands into a script so the user
> just types 'run_simple'.
>
> --bb
>
From: Stuart Y. <st...@ou...> - 2007年06月13日 15:17:55
Steve,
Thank you, I think you are right in general (the multiply by 60000 is
correct though). Since mucking about with my code a bit more it has
disappeared. Just strange to see an additive, as opposed to
multiplicative, error given the type of calcs that I am doing, hence my
doubting the meaning of the label.
many thanks
-Stuart
Steve Schmerler said:
>> lines1.extend(pylab.plot(In, inputFlow * 60000, 'g--'))
>
> Couldn't it be because of "inputFlow * 60000", which may cause the
> plotted values to be large (so it is related to what you do
> numerically)? The same happens for e.g. plot(array([1,2,3])+1e5), i.e.
> if the values' changes are small compared to their magnitude. Without
> that, the tick numbers would read 100001.0, 100002.0, 100003.0 in this
> example, which may not look very pretty.
-----------------------------
Stuart Yarrow
From: Steve S. <el...@gm...> - 2007年06月13日 14:49:10
Stuart Yarrow wrote:
> Hi All,
> 
> An extra label is appearing on the plot I'm generating. I wonder if anyone
> could explain what it means/how to get rid of it?
> 
> The plot is available at http://test.outpost.org.uk/example.png - the
> unexplained label is the '+4.05674e7' in the upper right hand corner. This
> value doesn't appear to be related to what I'm doing numerically.
> 
> # Plot Results
> lines1 = []
> plot1 = pylab.subplot(211)
> lines1.extend(pylab.plot(In, thrust / g, 'b-'))
> pylab.ylabel('Thrust (kgf)')
> pylab.grid(True)
> ax2 = pylab.twinx()
> lines1.extend(pylab.plot(In, inputFlow * 60000, 'g--'))
Couldn't it be because of "inputFlow * 60000", which may cause the 
plotted values to be large (so it is related to what you do 
numerically)? The same happens for e.g. plot(array([1,2,3])+1e5), i.e. 
if the values' changes are small compared to their magnitude. Without 
that, the tick numbers would read 100001.0, 100002.0, 100003.0 in this 
example, which may not look very pretty.
HTH
-- 
cheers,
steve
Random number generation is the art of producing pure gibberish as 
quickly as possible.
From: Alexandru I. M. <io...@ya...> - 2007年06月13日 14:36:54
Hello,
I am quite new to matplotlib.
I'm drawing some points on a figure and have implemented a pick_event
callback, in order to show something near the point I click. Now the problem
is that when I show the text near the point, it hides a lot of other points,
so I would like the text to dissapear (for example after some seconds).
How could I do this ? (if it's possible)
Btw, since I use matplotlib, I completely abandoned gnuplot.
It's the best free plotting tool that I found.
Thank you.
Best regards,
-- 
Alexandru Ionut Munteanu
 _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
From: signal s. <see...@gm...> - 2007年06月13日 13:42:20
Bill,
Thanks for your reply. pylab(ion) is not what I meant. Consider this simply
script -
.....
# simple.py
from pylab import *
plot([1,2,3])
show()
....
Now, if I do python simple.py on a cmd prompt, this will open up a plot
window, but the script won't return until the plot window is closed.
I would like simple.py process to end but the plot window to be still up. I
have users who would like to type one command after
another and not have to close any of the plot windows created.
I looked at ezplot, but it looks like a rather heavy weight soln, but maybe
I need to do something similar. Is there any other way around this?
Thanks,
ss
On 6/12/07, Bill Baxter <wb...@gm...> wrote:
>
> I'm not sure what you're after exactly, but your design needs may be
> solved by calling pylab.ion(True).
> If not the ezplot library that I wrote may do it for you.
> http://www.python.org/pypi/ezplot/0.1.0a3
>
> --bb
>
> On 6/13/07, signal seeker <see...@gm...> wrote:
> >
> > Hi All,
> >
> > I am very new to matplotlib and still trying to find my way through docs
> and
> > api, so please excuse me if there is a simple way to do this.
> >
> > So the situation is this - I would like to write a script that spawns
> > multiple plots and exits, but the plots window do not die
> > until they are explicitly closed.
> > Is there a simple way to do this. All the examples that
> > I have looked at so far have scripts that
> > only exit once the call to show() returns.
> > Is there some mechanism that
> > matplotlib provides to make the show() return? I am of course using the
> > pylab interface now, but I can start using the core matplotlib api if
> need.
> > Thanks in advance for your time.
> >
> > Regards,
> > -ss
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Matplotlib-users mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
From: Stuart Y. <st...@ou...> - 2007年06月13日 08:44:35
Hi All,
An extra label is appearing on the plot I'm generating. I wonder if anyone
could explain what it means/how to get rid of it?
The plot is available at http://test.outpost.org.uk/example.png - the
unexplained label is the '+4.05674e7' in the upper right hand corner. This
value doesn't appear to be related to what I'm doing numerically.
My plotting code is below (should probably tidy this up!):
# Plot Results
lines1 = []
plot1 = pylab.subplot(211)
lines1.extend(pylab.plot(In, thrust / g, 'b-'))
pylab.ylabel('Thrust (kgf)')
pylab.grid(True)
ax2 = pylab.twinx()
lines1.extend(pylab.plot(In, inputFlow * 60000, 'g--'))
pylab.ylabel('Flow (lpm)')
pylab.legend(lines1, ('Thrust', 'Flow'), 2) #(0.02,0.8)
plot1.set_xticklabels([])
pylab.title('%s / %s (%d lpm) / %d bar' % (self.thruster.name,
self.valve.name, self.valve.ratedFlow * 60000, sysPres * 10**-5))
lines2 = []
plot2 = pylab.subplot(212)
lines2.extend(pylab.plot(In, thrusterPower * 0.001, 'c--'))
lines2.extend(pylab.plot(In, valvePower * 0.001, 'r:'))
lines2.extend(pylab.plot(In, totalPower * 0.001, 'm-'))
pylab.ylabel('Power (kW)')
pylab.grid(True)
ax4 = pylab.twinx()
lines2.extend(pylab.plot(In, 1000 * efficiency / g, 'y-'))
pylab.ylabel('Efficiency (kgf/kW)')
pylab.xlabel('Control Current (normalised)')
pylab.legend(lines2, ('Thruster', 'Valve', 'Total', 'Efficiency'), 2)
#(0.02,0.6)
pylab.savefig(filename, orientation='landscape')
pylab.clf()
Thanks in advance for any help/advice.
-Stuart
-----------------------------
Stuart Yarrow
From: Jeff W. <jef...@no...> - 2007年06月13日 08:01:51
On 2007年6月12日 13:34:35 -0500, "Johnny Lin" <jl...@jo...>
said:
> Hi all,
> 
> I'm creating a cylindrical map, global in longitude and centered around
> 180 and the equator, using the following code:
> 
> map = Basemap( projection='cyl', resolution='l'
> , llcrnrlon=0, urcrnrlon=360
> , llcrnrlat=-76.875, urcrnrlat=76.875
> , lon_0=180, lat_0=0 )
> map.drawmeridians(pylab.arange(0,361,45), labels=[0,0,0,1])
> 
> The result is a map with labels of 0, 45E, 90E, ... 45W, but without
> a label at 0 (i.e. 360). Does anyone know how to make that label
> come up? I'm running Python 2.4 in Mac OSX 10.4, with matplotlib
> 0.90.1 and basemap 0.9.5.
> 
> Thanks much!
> 
> Best,
> -Johnny
> -- 
Johnny: The labels are drawn from 180E to 180W, and each longitude is
only labelled once. That means you don't get a the wraparound longitude
labelled at both the left and right side of the plot Sorry!
-Jeff
------
Jeffrey S. Whitaker
Phone: (303)497-6313
FAX: (303)497-6449
NOAA/OAR/CDC R/CDC1 
325 Broadway, Boulder, CO, USA 80305-3328 
http://www.cdc.noaa.gov/people/jeffrey.s.whitaker
1 message has been excluded from this view by a project administrator.

Showing 8 results of 8

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