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






Showing 11 results of 11

From: Jeff W. <js...@fa...> - 2008年08月02日 23:14:04
Patrick Marsh wrote:
> Hi Everyone,
>
> First email here...
>
> I am plotting meteorological data using matplotlib and basemap - and 
> can do this just fine. However, I would like to backout the 
> coordinates being used for the contours that are plotted.
>
> For example, if I were to contour windspeed every 5 m/s and plot this 
> (which I can do just fine), I would like to save a copy of the lat, 
> lon pairs as a text file. However, I cannot for the life of me figure 
> out how to do this. I have a feeling it is pretty simple and I'm just 
> over looking something that can do this. Any help would be appreciated.
>
> Thanks,
>
> -Patrick Marsh
> Graduate Student
> School of Meteorology
> University of Oklahoma
Patrick: contour and contourf return a ContourSet object. 
ContourSet.collections is a matplotlib LineCollection (for contour) or a 
PolyCollection (for contourf). You can retrieve the x,y (map 
projection) coordinates from these, and transfer them back to lat/lon 
coordinates using the Basemap instance via
lons,lats = map(x,y,inverse=True) # map is a Basemap instance.
See http://matplotlib.sourceforge.net/doc/html/api/collections_api.html 
for more info on matplotlib collection objects.
HTH,
-Jeff
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: Patrick M. <mar...@gm...> - 2008年08月02日 21:53:42
Hi Everyone,
First email here...
I am plotting meteorological data using matplotlib and basemap - and can do
this just fine. However, I would like to backout the coordinates being used
for the contours that are plotted.
For example, if I were to contour windspeed every 5 m/s and plot this (which
I can do just fine), I would like to save a copy of the lat, lon pairs as a
text file. However, I cannot for the life of me figure out how to do this.
I have a feeling it is pretty simple and I'm just over looking something
that can do this. Any help would be appreciated.
Thanks,
-Patrick Marsh
Graduate Student
School of Meteorology
University of Oklahoma
From: Mathieu L. <lep...@gm...> - 2008年08月02日 16:55:18
On Sat, Aug 2, 2008 at 4:18 AM, sa6113 <s.p...@gm...> wrote:
>
> No, unfortuantly matplotlib.axes dosen't have this attribute.
>
You can find demos in matplotlib examples of set_xlim() :
in manual_axis.py :
fig = figure(facecolor='white')
ax = fig.add_subplot(111, frame_on=False)
ax.plot(x, y, 'd', markersize=8, markerfacecolor='blue')
ax.set_xlim(0, 200)
ax.set_ylim(-1.5, 1.5)
From: Darren D. <dsd...@gm...> - 2008年08月02日 15:14:49
On Saturday 02 August 2008 4:56:06 am David Cournapeau wrote:
> Hi,
>
> I am using matplotlib for all my figure needs in academic papers,
> but I would like to convert some of my figures (generally exported ni
> eps and pdf) in black and white. I tried using colormaps, but when using
> several axes, I can't convert them all in one shot. Is there any way to
> say (in say savefig) to use a given colormap (gray levels in my case)
> for the whole figure ? Or is colormap not the way to go ?
Have you tried setting the default colormap in your rc settings?
From: Jeff W. <js...@fa...> - 2008年08月02日 11:50:30
Anand Patil wrote:
> Hi all,
>
> I've decided to hitch my wagon to the enthought distribution, which 
> comes with matplotlib 0.91.2. <http://0.91.2.>.. so when I try to use 
> basemap I get 
>
> <type 'exceptions.ImportError'>: your matplotlib is too old - basemap 
> requires version 0.98 or 
> higher, you have version 0.91.2
>
> I tried just installing matplotlib from svn, but it doesn't like the 
> version of numpy in ETS. What's the latest version of basemap I can 
> use with matplotlib 0.91.2?
>
> Thanks,
> Anand
Anand: I honestly don't know. I do know if you upgrade numpy to 1.1, 
you can upgrade matplotlib/basemap to the latest versions.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328
From: Anand P. <ana...@gm...> - 2008年08月02日 11:21:56
Hi all,
I've decided to hitch my wagon to the enthought distribution, which comes
with matplotlib 0.91.2... so when I try to use basemap I get
<type 'exceptions.ImportError'>: your matplotlib is too old - basemap
requires version 0.98 or
higher, you have version 0.91.2
I tried just installing matplotlib from svn, but it doesn't like the version
of numpy in ETS. What's the latest version of basemap I can use with
matplotlib 0.91.2?
Thanks,
Anand
From: David C. <da...@ar...> - 2008年08月02日 09:12:07
Hi,
 I am using matplotlib for all my figure needs in academic papers,
but I would like to convert some of my figures (generally exported ni
eps and pdf) in black and white. I tried using colormaps, but when using
several axes, I can't convert them all in one shot. Is there any way to
say (in say savefig) to use a given colormap (gray levels in my case)
for the whole figure ? Or is colormap not the way to go ?
thanks,
David
From: sa6113 <s.p...@gm...> - 2008年08月02日 07:18:39
No, unfortuantly matplotlib.axes dosen't have this attribute.
sa6113 wrote:
> 
> I am using matplotlib to draw and show my plot, now I want to know how may
> I add manual axes scale to it.
> I need to manually show the axes scale (from min to max value that I have)
> the below is some part of my code.
> .
> .
> .
> from matplotlib.figure import Figure
> 
> self.fig = Figure( figsize =5, 4 ))
> yLine = self.ax.plot( xData, yData, 'ro-', linewidth = 2 )
> fitLine = self.ax.plot( xData, fitData,'bo-', linewidth = 1 )
> self.ax.set_xlabel('X')
> self.ax.set_ylabel('Y )
> 
-- 
View this message in context: http://www.nabble.com/how-add-axes-scale-to-my-plot--tp18727840p18786828.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: eliben <el...@gm...> - 2008年08月02日 05:35:55
Alan G Isaac wrote:
> 
> I read Jonathan's point as being: there is no such
> "linking" possibility with such demo scripts.
> This indeed is why I questioned the relevance of
> the LGPL for such things, earlier on, even though
> the LGPL is in principle (and often in practice)
> a much more user friendly license than the GPL.
> 
I agree. So, I've modified the license of the demos to "public domain".
Thanks for the interesting discussion
Eli
-- 
View this message in context: http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18786329.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Alan G I. <ai...@am...> - 2008年08月02日 05:03:48
On Fri, 1 Aug 2008, eliben apparently wrote:
> if you link my module into your code, you won't have to 
> release your code,
I read Jonathan's point as being: there is no such
"linking" possibility with such demo scripts.
This indeed is why I questioned the relevance of
the LGPL for such things, earlier on, even though
the LGPL is in principle (and often in practice)
a much more user friendly license than the GPL.
Again, not all code needs the same license,
and simple scripts seem (to me) to beg to
be placed in the public domain.
But of course the key rule is always:
s/he who holds the copyright picks the license.
Cheers,
Alan Isaac
From: eliben <el...@gm...> - 2008年08月02日 04:49:29
JonathansCorner.com wrote:
> 
> I personally regard viral licenses with caution: that is, if the copyright
> says, "Don't build on or extend this unless you want your work to be
> covered
> by my chosen license," I will be extremely cautious about building off of
> them. Under the LGPV, if I incorporate one of your demos into my own 2000
> line program, your requirements of fairness require me to place my entire
> 2000 line program under the terms of the license you chose.
> 
> This is a significant deterrent to some programmers.
> 
I think you're mixing up GPL and LGPL here. LGPL was born especially for the
purpose of being copyleft but not viral. With LGPL, if you link my module
into your code, you won't have to release your code, only my module's. With
GPL, you'd have to open both.
While http://www.scipy.org/License_Compatibility is convincing, it also
speaks about GPL in this manner, giving LGPL only a short after-thought in
the end. 
I will however consider lowering the license bar for my demo code, since it
relies too much on BSD-licensed MPL stuff.
Eli
-- 
View this message in context: http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18786128.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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