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
(23) |
2
(13) |
3
(1) |
4
(17) |
5
(3) |
6
(10) |
7
(7) |
8
(7) |
9
(4) |
10
(13) |
11
(20) |
12
(13) |
13
(17) |
14
(20) |
15
(14) |
16
(3) |
17
(5) |
18
(15) |
19
(18) |
20
(14) |
21
(2) |
22
(13) |
23
(8) |
24
(3) |
25
(7) |
26
(10) |
27
(17) |
28
(20) |
29
(42) |
|
From: <bre...@un...> - 2008-02-11 23:50:51
|
I would recommend using "pylab.load" for reading the data. For example: x, y = pylab.load("filename", unpack=True) # with other options as required sa6113 <s.p...@gm...> Sent by: mat...@li... 09/02/2008 07:34 PM To mat...@li... cc Subject [Matplotlib-users] Curve fitting ... Hello there, I have a problem on curve fitting , would you please help me ?! I want to to develop a application that reads a text file with 2 columns of floating point data (as x and y) and performs a polynomial curve fit of the data at the order specified by the end user and then provides the curve-fit coefficients as well as the curve fit errors. My problem is in curve fit errors , I want to abtain Max and L2-norm of error. In addition I use "matplotlib.mlab module " and polyfit function for computing polynomial curve fit. Regards. View this message in context: Curve fitting ... Sent from the matplotlib - users mailing list archive at Nabble.com. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users UNITED GROUP This email message is the property of United Group. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, you may not disclose, copy or distribute this email, nor take or omit to take any action in reliance on it. United Group accepts no liability for any damage caused by this email or any attachments due to viruses, interference, interception, corruption or unauthorised access. If you have received this email in error, please notify United Group immediately by email to the sender's email address and delete this document. |
From: Jeff W. <js...@fa...> - 2008-02-11 23:36:12
|
Ryan May wrote: > Hi, > > I'm getting the following on Gentoo Linux: > #python hurrtracks.py > Traceback (most recent call last): > File "hurrtracks.py", line 7, in <module> > from matplotlib.toolkits.basemap import Basemap as Basemap > File > "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py", > line 1, in <module> > from basemap import __doc__, __version__ > File > "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py", > line 33, in <module> > import pyproj, sys, os, math, dbflib > File > "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/pyproj.py", > line 49, in <module> > from _geod import Geod as _Geod > ImportError: > /usr/lib64/python2.5/site-packages/matplotlib/toolkits/basemap/_geod.so: > undefined symbol: pj_errno > > Any clues as to why this would be happening? As far as I can tell, > pj_errno would be in Proj, which basemap has a version of internally. > > Ryan > > Ryan: Nothing comes immediately to mind - unless something went wrong with your build. Could you rebuild basemap and send me the a log of the build off-list? -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
From: Ryan M. <rm...@ou...> - 2008-02-11 21:45:50
|
Hi, I'm getting the following on Gentoo Linux: #python hurrtracks.py Traceback (most recent call last): File "hurrtracks.py", line 7, in <module> from matplotlib.toolkits.basemap import Basemap as Basemap File "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py", line 1, in <module> from basemap import __doc__, __version__ File "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py", line 33, in <module> import pyproj, sys, os, math, dbflib File "/usr/lib/python2.5/site-packages/matplotlib/toolkits/basemap/pyproj.py", line 49, in <module> from _geod import Geod as _Geod ImportError: /usr/lib64/python2.5/site-packages/matplotlib/toolkits/basemap/_geod.so: undefined symbol: pj_errno Any clues as to why this would be happening? As far as I can tell, pj_errno would be in Proj, which basemap has a version of internally. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma |
From: Alan G I. <ai...@am...> - 2008-02-11 19:25:45
|
On Mon, 11 Feb 2008, Ted Drain apparently wrote: > Is econpy still under development? Yes. Primarily during summers. ;-) New developers and other contributors are welcome. Cheers, Alan Isaac |
From: <chu...@ch...> - 2008-02-11 19:12:30
|
Mike -- thanks for your response. I thought I had tried this and it didn't work. I guess I didn't!!!! I just tried the following equivalent approach: ML.rcParams['font.family'] = 'serif' ML.rcParams['font.serif'] = ['Cambria Math'] + ML.rcParams['font.serif'] and it worked like a charm. Thanks again. ---- Michael Droettboom <md...@st...> wrote: > You shouldn't edit rcsetup.py directly -- that is part of the matplotlib > source code. Instead, you should edit the matplotlibrc settings file. > > In there, you'll actually want to change two settings: > > 1) Add Cambria to the front of the font.serif list > 2) Set "font.family" to "serif", so that mpl will use that list. > > Hope this helps, > Mike > > chu...@ch... wrote: > > I would like to be able to use Cambria font (http://en.wikipedia.org/wiki/Cambria_(typeface)) for all text on my charts. > > > > I am adding these charts to a MS Word 2007 document written in the same font. > > > > I tried to add Cambria as the fist string in rcsetup.py | defaultParams | 'font.serif'. That didn't work. Can I use this font for the charts? > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Matplotlib-users mailing list > > Mat...@li... > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > Michael Droettboom > Science Software Branch > Operations and Engineering Division > Space Telescope Science Institute > Operated by AURA for NASA |
From: Jouni K. S. <jou...@xt...> - 2008-02-11 19:11:08
|
s_pushparaj <s_p...@ho...> writes: > I am working to plot and compare distributions. For that I require the > grp2idx.m file to run boxplotC.m. Kindly help me get the request m file. It looks like you got the wrong list. This list is for discussing matplotlib, a Python plotting package. You refer to "m files", by which I suppose you mean Matlab code. You can find Matlab code at http://www.mathworks.com/matlabcentral/ -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Ted D. <ted...@jp...> - 2008-02-11 18:44:32
|
Thanks! Is econpy still under development? > -----Original Message----- > From: mat...@li... > [mailto:mat...@li...] On Behalf Of > Alan G Isaac > Sent: Monday, February 11, 2008 10:00 AM > To: mat...@li... > Subject: Re: [Matplotlib-users] Create powerpoint slide and/or > presentation from script? > > On Mon, 11 Feb 2008, Ted Drain apparently wrote: > > Does anyone know of a way to create a powerpoint slide from a plot? > > <URL:http://code.google.com/p/econpy/source/browse/trunk/utilities/mso. > py> > > hth, > Alan Isaac > > > > > ----------------------------------------------------------------------- > -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Alan G I. <ai...@am...> - 2008-02-11 17:58:15
|
On Mon, 11 Feb 2008, Ted Drain apparently wrote: > Does anyone know of a way to create a powerpoint slide from a plot? <URL:http://code.google.com/p/econpy/source/browse/trunk/utilities/mso.py> hth, Alan Isaac |
From: Ted D. <ted...@jp...> - 2008-02-11 15:58:47
|
Does anyone know of a way to create a powerpoint slide from a plot? I'm assuming that it's possible to have a script that savse a PNG of the plot and then use a VB (or preferably python) script to create a slide (or append that slide to an existing presentation). I've google'ed around but I'm having trouble finding a decent example of doing this on the web. Any examples would be greatly appreciated. Thanks, Ted |
From: Jouni K. S. <jou...@xt...> - 2008-02-11 15:13:22
|
Slackenerny <sla...@pu...> writes: >>>graph = f.add_subplot(...) > I could help myself with >> graph.get_xlim() > So, how could I have helped myself, without annoying you? ;) The commands getp(graph) and setp(graph) might have helped. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: s_pushparaj <s_p...@ho...> - 2008-02-11 15:09:41
|
Dear list I am working to plot and compare distributions. For that I require the grp2idx.m file to run boxplotC.m. Kindly help me get the request m file. with thanks Pushparaj -- View this message in context: http://www.nabble.com/needed-grp2idx-tp15412798p15412798.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Mark B. <ma...@gm...> - 2008-02-11 14:00:46
|
Hello Heiko - dir(graph) would at least have given you a list of the functions and attributes, so you may have been able to spot the get_xlim function. I use that a lot, Mark > > ------------------------------ > > Date: Mon, 11 Feb 2008 14:14:03 +0100 > From: Slackenerny <sla...@pu...> > Subject: Re: [Matplotlib-users] How to get current value of xlim/ylim? > To: mat...@li... > Message-ID: <161...@pu...> > Content-Type: text/plain; charset=iso-8859-15 > > Hi, > I could help myself with > > graph.get_xlim() > which I found after finally guessing the right expressions for Google, > but I wonder how I could have found it in the help() output... > I've been searching that for quite sometime and didn't come up with > anything... > So, how could I have helped myself, without annoying you? ;) > > best wishes > > |
From: Mark B. <ma...@gm...> - 2008-02-11 13:51:58
|
On Feb 11, 2008 2:35 PM, Michael Droettboom <md...@st...> wrote: > Before I look into this further: what version of mpl are you using? > I am using 0.91.2 using the win32 installer for Python 2.4. Thanks for looking into this, Mark |
From: Michael D. <md...@st...> - 2008-02-11 13:35:29
|
Before I look into this further: what version of mpl are you using? Mark Bakker wrote: > I seem to have tracked down the problem. > After calling the aspect_ratio function, the data limits don't get set. > When a new axis with sharex is called, it gets the old data limits. > After I call draw() or ax.draw() the datalimit gets set correctly. > And creating a subplot with sharex works fine. > Maybe the datalimit needs to be set at the end of the aspect_ratio function? > (I presume that is part of the draw() command) > Mark > > from pylab import * > > x,y = meshgrid(linspace(0,5,5),linspace(0,5,5)) > > figure() > ax = subplot(211) > ax.contour(x,y,x) > ax.set_aspect('equal',adjustable='datalim') > print ax.get_xlim() # Prints 0 to 5 while datalimit is much larger > draw() > print ax.get_xlim() # Now datalimit is correct and sharex works > ax2 = subplot(212,sharex=ax) > draw() > > On Feb 11, 2008 9:56 AM, Mark Bakker <ma...@gm... > <mailto:ma...@gm...>> wrote: > > Hello - > > I have a hard time getting aspect_ratio to work correctly with sharex. > This used to work quite a while ago, and has been broken for a long > time (or at least I don't know how to get it to work) > But I finally found the time to put a simple example together to > determine if I do something wrong, or whether this can be fixed easily. > > When I make a small contour plot setting the aspect ratio equal > works fine: > > from pylab import * > > x,y = meshgrid(linspace(0,5,5),linspace(0,5,5)) > > figure() > ax = subplot(211) > ax.contour(x,y,x) > ax.set_aspect('equal',adjustable='datalim') > draw() > > Note that the datalim on the x-axis is expanded, as the data limit > on the y-axis is the determining factor. > > If I now try to do the same thing while linking the x-axis of a > second subplot to the first one, then > the same call to set_aspect changes the data limit on the y-axis > while keeping the x-axis fixed. > That seems inconsistent and is not the behavior I want: > > figure() > ax = subplot(211) > ax.contour(x,y,x) > ax2 = subplot(212,sharex=ax) > ax.set_aspect('equal',adjustable='datalim') > draw() > > Any idea what I am doing wrong? > > Thanks, Mark > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Michael D. <md...@st...> - 2008-02-11 13:31:54
|
You shouldn't edit rcsetup.py directly -- that is part of the matplotlib source code. Instead, you should edit the matplotlibrc settings file. In there, you'll actually want to change two settings: 1) Add Cambria to the front of the font.serif list 2) Set "font.family" to "serif", so that mpl will use that list. Hope this helps, Mike chu...@ch... wrote: > I would like to be able to use Cambria font (http://en.wikipedia.org/wiki/Cambria_(typeface)) for all text on my charts. > > I am adding these charts to a MS Word 2007 document written in the same font. > > I tried to add Cambria as the fist string in rcsetup.py | defaultParams | 'font.serif'. That didn't work. Can I use this font for the charts? > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |
From: Slackenerny <sla...@pu...> - 2008-02-11 13:15:48
|
Hi, I could help myself with > graph.get_xlim() which I found after finally guessing the right expressions for Google, but I wonder how I could have found it in the help() output... I've been searching that for quite sometime and didn't come up with anything... So, how could I have helped myself, without annoying you? ;) best wishes > Hello List, > assume I'm creating a plot via >>f = Figure(figsize=(5,4), dpi=100) >>graph = f.add_subplot(111, autoscale_on=False, xlim=[4,50], ybound=-2) >>graph.plot(x,y,"g--o", ms=5) > then the user zooms around a little does this and that. > Now I want to draw a second plot, which uses the new xlim and ylim > values from the old plot (i.e. has the same scaling). How can read out > those values? > best wishes > heiko -- Mit freundlichen Grüßen Slackenerny mailto:sla...@pu... |
From: Slackenerny <sla...@pu...> - 2008-02-11 12:42:18
|
Hello List, assume I'm creating a plot via >f = Figure(figsize=(5,4), dpi=100) >graph = f.add_subplot(111, autoscale_on=False, xlim=[4,50], ybound=-2) >graph.plot(x,y,"g--o", ms=5) then the user zooms around a little does this and that. Now I want to draw a second plot, which uses the new xlim and ylim values from the old plot (i.e. has the same scaling). How can read out those values? best wishes heiko |
From: Mark B. <ma...@gm...> - 2008-02-11 09:07:19
|
I seem to have tracked down the problem. After calling the aspect_ratio function, the data limits don't get set. When a new axis with sharex is called, it gets the old data limits. After I call draw() or ax.draw() the datalimit gets set correctly. And creating a subplot with sharex works fine. Maybe the datalimit needs to be set at the end of the aspect_ratio function? (I presume that is part of the draw() command) Mark from pylab import * x,y = meshgrid(linspace(0,5,5),linspace(0,5,5)) figure() ax = subplot(211) ax.contour(x,y,x) ax.set_aspect('equal',adjustable='datalim') print ax.get_xlim() # Prints 0 to 5 while datalimit is much larger draw() print ax.get_xlim() # Now datalimit is correct and sharex works ax2 = subplot(212,sharex=ax) draw() On Feb 11, 2008 9:56 AM, Mark Bakker <ma...@gm...> wrote: > Hello - > > I have a hard time getting aspect_ratio to work correctly with sharex. > This used to work quite a while ago, and has been broken for a long time > (or at least I don't know how to get it to work) > But I finally found the time to put a simple example together to determine > if I do something wrong, or whether this can be fixed easily. > > When I make a small contour plot setting the aspect ratio equal works > fine: > > from pylab import * > > x,y = meshgrid(linspace(0,5,5),linspace(0,5,5)) > > figure() > ax = subplot(211) > ax.contour(x,y,x) > ax.set_aspect('equal',adjustable='datalim') > draw() > > Note that the datalim on the x-axis is expanded, as the data limit on the > y-axis is the determining factor. > > If I now try to do the same thing while linking the x-axis of a second > subplot to the first one, then > the same call to set_aspect changes the data limit on the y-axis while > keeping the x-axis fixed. > That seems inconsistent and is not the behavior I want: > > figure() > ax = subplot(211) > ax.contour(x,y,x) > ax2 = subplot(212,sharex=ax) > ax.set_aspect('equal',adjustable='datalim') > draw() > > Any idea what I am doing wrong? > > Thanks, Mark > > |
From: Mark B. <ma...@gm...> - 2008-02-11 08:56:22
|
Hello - I have a hard time getting aspect_ratio to work correctly with sharex. This used to work quite a while ago, and has been broken for a long time (or at least I don't know how to get it to work) But I finally found the time to put a simple example together to determine if I do something wrong, or whether this can be fixed easily. When I make a small contour plot setting the aspect ratio equal works fine: from pylab import * x,y = meshgrid(linspace(0,5,5),linspace(0,5,5)) figure() ax = subplot(211) ax.contour(x,y,x) ax.set_aspect('equal',adjustable='datalim') draw() Note that the datalim on the x-axis is expanded, as the data limit on the y-axis is the determining factor. If I now try to do the same thing while linking the x-axis of a second subplot to the first one, then the same call to set_aspect changes the data limit on the y-axis while keeping the x-axis fixed. That seems inconsistent and is not the behavior I want: figure() ax = subplot(211) ax.contour(x,y,x) ax2 = subplot(212,sharex=ax) ax.set_aspect('equal',adjustable='datalim') draw() Any idea what I am doing wrong? Thanks, Mark |
From: <chu...@ch...> - 2008-02-11 07:05:10
|
The following script creates a chart in pdf format. All the text on the chart is searchable. I need to create a chart which will be put in a MS Word 2007 document (as part of a much larger document) and then converted to a Pdf. Which format should my chart be and which backend should I use? Thus far, I have been using Agg and putting in pngs...the quality is great but they are not searchable! Thanks. ============================================= import matplotlib as ML ML.use('Pdf') import pylab as PL fig = PL.figure() ax1 = fig.add_subplot(111) lstX = range(1,100) lstY = map(lambda x:PL.sin(x/PL.pi),lstX) ax1.plot(lstX, lstY, color=(0.87,0.0,0.0), lw=2, alpha=0.6) ax1.set_ylabel('control of line styles, font properties, axes properties') ax1.set_xlabel('trys to make easy things easy and hard things') ax1.set_title('python 2D plotting library which produces', weight='bold', size='large') fig.savefig('out', dpi=72) ============================================= |