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
(1) |
|
3
(17) |
4
(9) |
5
(2) |
6
(5) |
7
(8) |
8
(11) |
9
(6) |
|
10
(6) |
11
(21) |
12
(21) |
13
(17) |
14
(25) |
15
(15) |
16
(2) |
|
17
|
18
(9) |
19
(22) |
20
(25) |
21
(31) |
22
(19) |
23
(2) |
|
24
(5) |
25
(19) |
26
(10) |
27
(13) |
28
(14) |
29
(20) |
30
(5) |
|
31
(9) |
|
|
|
|
|
|
|
From: Jeff W. <js...@fa...> - 2010-01-25 23:10:51
|
Phillip M. Feldman wrote: > Jeff Whitaker wrote: >> Dr. Phillip M. Feldman wrote: >>> The attached program generates a map and then saves it to a file. I >>> have two >>> problems with the result: >>> >>> (1) Note that the screenshot shows a title above the map, while the >>> .png >>> file that was saved by the program does not. >>> >> Philip: >> >> mapdemo.jpeg (which was presumably created from the png saved by your >> program) is totally empty. >>> (2) I would like to be able to label the lines of latitude and >>> longitude, >>> but have not been able to figure out how to do this. >>> >> >> use the label keyword to drawmeridians and drawparallels. >> >> -Jeff >> > Hello Jeff, > > I had tried that, but thought that it wasn't working because I wasn't > seeing anything on the screen. I now think that the label parameter > must be working, because the lines of latitude and longitude are > labeled in the version of the map that is saved by the program, and > that I'm not seeing them on the screen because I have black text on a > black background. Is there a way to control the color of the text > labels? Note also that the plot title appears on the screen shot > jpeg, but not in the version saved by the program. Any advice will be > appreciated. > > Philllip Philip: To change the color of the lat/lon lines, use the color keyword in drawparallels and drawmeridians (i.e. color="red"). To change the font color for the labels, use fontdict=dict(color='red'). The plot title color can be changed in the same way. -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-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
|
From: Phillip M. F. <pfe...@ve...> - 2010-01-25 21:53:04
|
Jeff Whitaker wrote: > Dr. Phillip M. Feldman wrote: >> The attached program generates a map and then saves it to a file. I >> have two >> problems with the result: >> >> (1) Note that the screenshot shows a title above the map, while the .png >> file that was saved by the program does not. >> > Philip: > > mapdemo.jpeg (which was presumably created from the png saved by your > program) is totally empty. >> (2) I would like to be able to label the lines of latitude and >> longitude, >> but have not been able to figure out how to do this. >> > > use the label keyword to drawmeridians and drawparallels. > > -Jeff > Hello Jeff, I had tried that, but thought that it wasn't working because I wasn't seeing anything on the screen. I now think that the label parameter must be working, because the lines of latitude and longitude are labeled in the version of the map that is saved by the program, and that I'm not seeing them on the screen because I have black text on a black background. Is there a way to control the color of the text labels? Note also that the plot title appears on the screen shot jpeg, but not in the version saved by the program. Any advice will be appreciated. Philllip |
|
From: Thomas R. <tho...@gm...> - 2010-01-25 21:39:54
|
Hello, I'm trying to make a log plot using set_xscale and set_yscale. The default LogFormatter however shows 10^-1, 10^0, and 10^1 rather than 0.1, 1, and 10 (other plotting packages I've used usually automatically substitute these three common labels). Is there a way that the LogFormatter could have an extra option for basically enabling this (or even better, that this be made the default, with an option to disable - I don't see most people wanting 1 shown as 10^0)? Cheers, Thomas |
|
From: Jeff W. <js...@fa...> - 2010-01-25 21:29:09
|
Dr. Phillip M. Feldman wrote: > The attached program generates a map and then saves it to a file. I have two > problems with the result: > > (1) Note that the screenshot shows a title above the map, while the .png > file that was saved by the program does not. > Philip: mapdemo.jpeg (which was presumably created from the png saved by your program) is totally empty. > (2) I would like to be able to label the lines of latitude and longitude, > but have not been able to figure out how to do this. > use the label keyword to drawmeridians and drawparallels. -Jeff > Thanks! > > Phillip > > http://old.nabble.com/file/p27313185/mapdemo.py mapdemo.py > http://old.nabble.com/file/p27313185/mapdemo%2Bscreenshot.jpeg > http://old.nabble.com/file/p27313185/mapdemo.jpeg > > -- 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-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |
|
From: Dr. P. M. F. <pfe...@ve...> - 2010-01-25 20:41:31
|
The attached program generates a map and then saves it to a file. I have two problems with the result: (1) Note that the screenshot shows a title above the map, while the .png file that was saved by the program does not. (2) I would like to be able to label the lines of latitude and longitude, but have not been able to figure out how to do this. Thanks! Phillip http://old.nabble.com/file/p27313185/mapdemo.py mapdemo.py http://old.nabble.com/file/p27313185/mapdemo%2Bscreenshot.jpeg http://old.nabble.com/file/p27313185/mapdemo.jpeg -- View this message in context: http://old.nabble.com/two-issues-with-labels-on-maps-tp27313185p27313185.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Jason G. <jas...@cr...> - 2010-01-25 19:41:57
|
Gökhan Sever wrote: > Hello, > > I have thought of this might interesting to share. Register at > www.sagenb.org or try on your local Sage-notebook and using the following > code: > > A related example that lets you get the actual matplotlib figure from a Sage graphic and play with it is here: http://sagenb.org/home/pub/1413/ The thing we'd like to do now is be able to wrap matplotlib axes with Sage Graphics objects (so someone can construct a matplotlib object and then wrap it in a Sage Graphics instance to then do further stuff with it in Sage). However, I think we need to resolve the issues involving taking the axes from one figure and adding them to another figure; these issues were brought up on the mailing list a while ago. Thanks, Jason -- Jason Grout jas...@dr... |
|
From: Michael D. <md...@st...> - 2010-01-25 19:39:30
|
Yes. Unicode strings can be used for text. See this example: http://matplotlib.sourceforge.net/examples/pylab_examples/unicode_demo.html (There are some caveats about using characters outside of the BMP, but that doesn't affect most people.) Mike Filipe Pires Alvarenga Fernandes wrote: > Does matplotlib support accented characters without the TeX mathtext? > > Thanks. > > ***************************************************** > Filipe Pires Alvarenga Fernandes > > University of Massachusetts Dartmouth > 200 Mill Road - Fairhaven, MA > Tel: (508) 910-6381 > Email: fal...@um... > <mailto:fal...@um...> > oc...@ya... <mailto:oc...@ya...> > oc...@gm... <mailto:oc...@gm...> > > http://ocefpaf.tiddlyspot.com/ > ***************************************************** > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > ------------------------------------------------------------------------ > > _______________________________________________ > 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: Filipe P. A. F. <oc...@gm...> - 2010-01-25 19:33:30
|
Does matplotlib support accented characters without the TeX mathtext?
Thanks.
*****************************************************
Filipe Pires Alvarenga Fernandes
University of Massachusetts Dartmouth
200 Mill Road - Fairhaven, MA
Tel: (508) 910-6381
Email: fal...@um...
oc...@ya...
oc...@gm...
http://ocefpaf.tiddlyspot.com/
*****************************************************
|
|
From: Gökhan S. <gok...@gm...> - 2010-01-25 19:04:22
|
Constrain pan/zoom to x axis hold *x* Constrain pan/zoom to y axis hold *y* I don't have these in my backend_bases.py file. Are these working on your system? On Mon, Jan 25, 2010 at 12:58 PM, Gökhan Sever <gok...@gm...>wrote: > Hello, > > I could these keys into rcsetup.py file as well as matplotlibrc.template > and update backend_bases.py accordingly. And add some documentation > reflecting > the changes made. > > # Event keys to interact with figures/plots via keyboard > > fullscreen : 'f' > home : 'h' > reset : 'r' > back : 'c' > forward : 'v' > pan : 'p' > zoom : 'o' > save : 's' > grid : 'g' > yscale : 'l' > xscale : 'k' > > > *Notes:* > > Matthias, leaving values as empty will remove the key short-cut. > > Don't understand exactly what 'a' does? > > f doesn't toggle full-screen --using qt4agg backend. > > There are a couple function duplicates. (eg. back with 'c' and left and > backspace keys. How can represent them? Create a list inside the > dictionary? > back = ['c', 'left', 'backspace'] > > 'o' seems like unnecessary. Since you have to select an area using mouse. > > 's' doesn't behave correctly here. Shouldn't it bring the save dialog? > Instead I am getting: > TypeError: save_figure() takes exactly 1 argument (2 given) > > > > On Mon, Jan 25, 2010 at 8:32 AM, Matthias Michler <Mat...@gm... > > wrote: > >> Hi Gökhan, >> >> I just wanted to discuss the key, because I think this patch should be >> part of >> matplotlib and not only of individual users. I think it is worth be be >> added >> to the mpl-tracker at http://sourceforge.net/tracker/?group_id=80706 or >> maybe >> one of the developers has the time to commit this small change? >> >> I think your idea about key-mappings in the matplotlib-rc is a good option >> to >> customize keyboard short cuts and even remove short-cuts which aren't of >> intrest for the individual user. Furthermore the latter yields space for >> keyboard shortcuts, which are used in one's own program. >> >> Kind regards, >> Matthias >> >> On Friday 22 January 2010 16:57:22 Gökhan Sever wrote: >> > It is very simple to change key-assignment. Take a look at the >> > backend_bases.py code (search for event.key instances) : >> > >> > elif event.key == 'L': >> > >> > I was thinking to move y-scaling to "y" and x-scaling to "x" but x and y >> > are assigned to something else ( >> > http://matplotlib.sourceforge.net/users/navigation_toolbar.html) >> > >> > For me toggling "k" is simpler for me than doing Shift-L. >> > >> > Maybe these options could be provided in the matplotlibrc file. Users >> can >> > make their key mapping based on their choice. That requires some more >> > coding >> > >> > :) >> > >> > On Fri, Jan 22, 2010 at 1:59 AM, Matthias Michler >> > >> > <Mat...@gm...>wrote: >> > > Hi Gökhan, Hi list members, >> > > >> > > This is really a missing feature in matplotlib in my opinion and it's >> > > great that you took the time to make an suggestion, but I would prefer >> > > capital "L" >> > > for the xaxis-scaling like gnuplot although I'm not sure this is >> > > possible. >> > > >> > > What do you and other list members think about that? >> > > >> > > Kind regards, >> > > Matthias >> > > >> > > On Thursday 21 January 2010 19:45:37 Gökhan Sever wrote: >> > > > Hello, >> > > > >> > > > "l" key does the log - linear scaling for y-axis. I have made a >> minor >> > > > change to use "k" for x-axis scaling. >> > > > >> > > > Patch added. Feel free to add if you find it useful. >> >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > -- > Gökhan > -- Gökhan |
|
From: Gökhan S. <gok...@gm...> - 2010-01-25 18:58:23
|
Hello, I could these keys into rcsetup.py file as well as matplotlibrc.template and update backend_bases.py accordingly. And add some documentation reflecting the changes made. # Event keys to interact with figures/plots via keyboard fullscreen : 'f' home : 'h' reset : 'r' back : 'c' forward : 'v' pan : 'p' zoom : 'o' save : 's' grid : 'g' yscale : 'l' xscale : 'k' *Notes:* Matthias, leaving values as empty will remove the key short-cut. Don't understand exactly what 'a' does? f doesn't toggle full-screen --using qt4agg backend. There are a couple function duplicates. (eg. back with 'c' and left and backspace keys. How can represent them? Create a list inside the dictionary? back = ['c', 'left', 'backspace'] 'o' seems like unnecessary. Since you have to select an area using mouse. 's' doesn't behave correctly here. Shouldn't it bring the save dialog? Instead I am getting: TypeError: save_figure() takes exactly 1 argument (2 given) On Mon, Jan 25, 2010 at 8:32 AM, Matthias Michler <Mat...@gm...>wrote: > Hi Gökhan, > > I just wanted to discuss the key, because I think this patch should be part > of > matplotlib and not only of individual users. I think it is worth be be > added > to the mpl-tracker at http://sourceforge.net/tracker/?group_id=80706 or > maybe > one of the developers has the time to commit this small change? > > I think your idea about key-mappings in the matplotlib-rc is a good option > to > customize keyboard short cuts and even remove short-cuts which aren't of > intrest for the individual user. Furthermore the latter yields space for > keyboard shortcuts, which are used in one's own program. > > Kind regards, > Matthias > > On Friday 22 January 2010 16:57:22 Gökhan Sever wrote: > > It is very simple to change key-assignment. Take a look at the > > backend_bases.py code (search for event.key instances) : > > > > elif event.key == 'L': > > > > I was thinking to move y-scaling to "y" and x-scaling to "x" but x and y > > are assigned to something else ( > > http://matplotlib.sourceforge.net/users/navigation_toolbar.html) > > > > For me toggling "k" is simpler for me than doing Shift-L. > > > > Maybe these options could be provided in the matplotlibrc file. Users can > > make their key mapping based on their choice. That requires some more > > coding > > > > :) > > > > On Fri, Jan 22, 2010 at 1:59 AM, Matthias Michler > > > > <Mat...@gm...>wrote: > > > Hi Gökhan, Hi list members, > > > > > > This is really a missing feature in matplotlib in my opinion and it's > > > great that you took the time to make an suggestion, but I would prefer > > > capital "L" > > > for the xaxis-scaling like gnuplot although I'm not sure this is > > > possible. > > > > > > What do you and other list members think about that? > > > > > > Kind regards, > > > Matthias > > > > > > On Thursday 21 January 2010 19:45:37 Gökhan Sever wrote: > > > > Hello, > > > > > > > > "l" key does the log - linear scaling for y-axis. I have made a minor > > > > change to use "k" for x-axis scaling. > > > > > > > > Patch added. Feel free to add if you find it useful. > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan |
|
From: Jae-Joon L. <lee...@gm...> - 2010-01-25 16:04:20
|
On Mon, Jan 25, 2010 at 9:14 AM, Dimitri Linten <dim...@gm...> wrote: > What is the best way to do this ? Please explain what you want and what your issue is. Do not expect us (developers or other users) to study your code. If possible, post a small stand-alone example that others can simply run. As far as the watermark is concerned, the easiest way is to use figimage as John suggested, but apparently this is not what you want. The svn version of matplotlib has OffsetImage and AnnotationBox, which could be helpful. Regards, -JJ |
|
From: Dimitri L. <dim...@gm...> - 2010-01-25 15:12:05
|
Dear John, Thank you for your reply, however am looking for a watermark to be plotted inside the axis, not behind the axis Regards, Dimitri On Mon, Jan 25, 2010 at 3:58 PM, John Hunter <jd...@gm...> wrote: > On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten > <dim...@gm...> wrote: > > Hi Forum, > > I am using matplotlib in a PyQt4 App. > > I wanted to add a watermark-type pictures to the standard white > background > > of the canvas. > > Does the following help? > > http://matplotlib.sourceforge.net/search.html?q=codex+watermark > |
|
From: John H. <jd...@gm...> - 2010-01-25 14:58:59
|
On Mon, Jan 25, 2010 at 8:14 AM, Dimitri Linten <dim...@gm...> wrote: > Hi Forum, > I am using matplotlib in a PyQt4 App. > I wanted to add a watermark-type pictures to the standard white background > of the canvas. Does the following help? http://matplotlib.sourceforge.net/search.html?q=codex+watermark |
|
From: Dimitri L. <dim...@gm...> - 2010-01-25 14:19:40
|
Hi Forum,
I am using matplotlib in a PyQt4 App.
I wanted to add a watermark-type pictures to the standard white background
of the canvas.
My current version of this is :
def getwatermark(self):
factor=1.0 #factor for scaling image
im1=QtGui.QPixmap(':/watermark.png')
im=im1.toImage()
self.watermark_ratio=(im.height()/factor)/(im.width()/factor)
ival0=[]
for i in range(im.width()):#range(2): #range(im.width()):
for j in range(im.height()):#range(3): #range(im.height()):
if int(im.pixel(i,j))==0:
ival0.append(43)
else:
ival0.append(40)
self.watermark=reshape(ival0,(im.width(),im.height()))
def placewatermark(self,canvas,axes):
try:
if self.version=='1':
grayfactor=24 #factor for grayscale
canvassize=canvas.size()
if canvas.__class__.__name__=='MyPFCanvas':
#for PF, the IV canvas is split in two figures...
bottom=self.IVTab.IVcanvas.vert[0]._scalable_size
spacing=self.IVTab.IVcanvas.vert[1]._scalable_size
top=self.IVTab.IVcanvas.vert[2]._scalable_size
correctionY=top/(top+spacing+bottom)
else:
correctionY=1
origaxes=axes.axis()
xrange=origaxes[1]-origaxes[0]
yrange=origaxes[3]-origaxes[2]
xcanvas=canvassize.width()
ycanvas=canvassize.height()*correctionY
if (xcanvas/float(ycanvas))>self.watermark_ratio:
yfig=yrange
centery=origaxes[2]
xfig=self.watermark_ratio*yrange
xfig=(yfig*self.watermark_ratio)*(xrange/yrange)*(ycanvas/float(xcanvas))
centerx=origaxes[0]+(xrange-xfig)/2
else:
xfig=xrange
centerx=origaxes[0]
yfig=(xfig/self.watermark_ratio)*(yrange/xrange)/(ycanvas/float(xcanvas))
centery=origaxes[2]+(yrange-yfig)/2
axes.imshow(self.watermark,origin='lower',extent=(centerx,centerx+xfig,centery,centery+yfig),vmin=0,vmax=43,cmap=cm.gray)
#,extent=(centerx,centerx+xfig,centery,centery+yfig),,
axes.axis('auto')
axes.axis(origaxes)
canvas.draw()
except:
## print "no watermark placeD"
pass
What is the best way to do this ?
Regards,
Dimitri
|
|
From: Philipp B. <li...@ro...> - 2010-01-25 06:28:50
|
Dear listmembers,
I experienced a problem with matplotlib yesterday that caused me a lot of
headache and I don't know whether this is a bug or if I forgot something.
What I want is to plot different datasets in different plots in different
files. My code looks like that:
#######################
from pylab import fft, ifft, var, average, real, show
import matplotlib.pyplot as plt
def process_file(filename, fig_nr):
plt.figure(fig_nr)
plt.clf()
plt.subplot(211)
plt.plot(s, alt, '-')
plt.subplot(212)
plt.plot(s,map(lambda x: x*3.6,speed))
plt.savefig(filename+".png")
process_file("foo1.tcx", 1)
process_file("foo2.tcx", 2)
process_file("foo3.tcx",3)
##########################
The problem here is that in the plots for file foo2 the data from foo1 is
included, in the plots for foo3 the data of foo1 and foo2.
I thought that I paid respect to this behaviour with plt.figure(), on
stackoverflow I read about the plt.clf() - thing but nothing happened. I tried
to make fig_nr a hash over the filename or leave it blank (like suggested in
the documentation) but this had no effect and I ended up with the additional
parameter (fig_nr in the example above) which also did not work.
Is this maybe a bug or did I forget an important thing?
I'm running Debian sid with python-matplotlib 0.99.1.2-2 (I hope the numbering
from Debian and matplotlib is similar).
Best regards,
Philipp Bender
|
|
From: Phillip M. F. <pfe...@ve...> - 2010-01-25 03:19:00
|
Jeff Whitaker wrote: > Dr. Phillip M. Feldman wrote: >> Jeff Whitaker wrote: >> >>> <snip> >>> Philip: That's an error from the proj4 c library saying that it >>> didn't like one of the parameters you used to define the >>> projection. Since you didn't include the parameters you used, I >>> can't say which one is the culprit. >>> >>> -Jeff >>> >>> >> >> > Philip: I believe that lat_0 must be zero for the geostationary > projection (you have to be looking down on the equator). I usually > leave the lat_0 parameter off entirely, in which case zero is > assumed. I'll try to catch that and raise a more insightful error > message. > > -Jeff > Hm. I suppose that you are right. "Geostationary" does imply that the viewer is 35786.2 km above the equator. What would be more useful is a geosynchronous projection. This would allow the viewer to be located at any latitude. Geostationary is a special case of geosynchronous. Even more useful than a geosynchronous projection is a camera projection that allows one to place the viewer at any location in space (i.e., any latitude and longitude for the nadir point, and any altitude). (I wrote something like this is Fortran 25 years ago). Generalizing the existing geostationary projection to turn it into a camera projection would make it far more useful. I hope that someone will consider making this change. Phillip |
|
From: Jeff W. <js...@fa...> - 2010-01-25 03:03:16
|
Dr. Phillip M. Feldman wrote: > Jeff Whitaker wrote: > >> <snip> >> Philip: That's an error from the proj4 c library saying that it didn't >> like one of the parameters you used to define the projection. Since you >> didn't include the parameters you used, I can't say which one is the >> culprit. >> >> -Jeff >> >> > > Philip: I believe that lat_0 must be zero for the geostationary projection (you have to be looking down on the equator). I usually leave the lat_0 parameter off entirely, in which case zero is assumed. I'll try to catch that and raise a more insightful error message. -Jeff |