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
(11) |
2
(24) |
3
(24) |
4
(31) |
5
(30) |
6
(27) |
7
(25) |
8
(8) |
9
(2) |
10
(12) |
11
(16) |
12
(33) |
13
(18) |
14
(17) |
15
(3) |
16
(7) |
17
(8) |
18
(22) |
19
(20) |
20
(25) |
21
(10) |
22
(17) |
23
(18) |
24
(23) |
25
(15) |
26
(19) |
27
(6) |
28
(7) |
29
(6) |
30
(1) |
31
(12) |
|
|
|
|
|
From: Darren D. <dsd...@gm...> - 2009-08-12 11:20:46
|
On Wed, Aug 12, 2009 at 7:13 AM, D2Hitman<j.m...@wa...> wrote: > > Hi, > > I am trying to use a text label with a new line in the middle and then save > the figure to .eps > > text(0.5, 0.5, r'a \\ b') > savefig('test.eps') > > This results in: > > RuntimeError: LaTeX was not able to process your file: > Here is the full report generated by LaTeX: > > This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) > entering extended mode > (/tmp/tmpkRUaxb.tex > LaTeX2e <2005/12/01> > Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, > noh > yphenation, basque, bulgarian, coptic, welsh, czech, slovak, german, > ngerman, d > anish, esperanto, spanish, catalan, galician, estonian, finnish, french, > greek, > monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus, > indonesian, > icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese, > romani > an, russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish, > ukr > ainian, loaded. > (/usr/share/texmf/tex/latex/base/article.cls > Document Class: article 2005/09/16 v1.4f Standard LaTeX document class > (/usr/share/texmf/tex/latex/base/size10.clo)) > (/usr/share/texmf/tex/latex/type1cm/type1cm.sty) > (/usr/share/texmf/tex/latex/psnfss/helvet.sty > (/usr/share/texmf/tex/latex/graphics/keyval.sty)) > (/usr/share/texmf/tex/latex/psnfss/courier.sty) > (/usr/share/texmf/tex/latex/base/textcomp.sty > (/usr/share/texmf/tex/latex/base/ts1enc.def)) > (/usr/share/texmf/tex/latex/geometry/geometry.sty > > Package geometry Warning: Over-specification in `h'-direction. > `width' (614.295pt) is ignored. > > > Package geometry Warning: Over-specification in `v'-direction. > `height' (794.96999pt) is ignored. > > ) (/usr/share/texmf/tex/latex/psfrag/psfrag.sty > (/usr/share/texmf/tex/latex/graphics/graphics.sty > (/usr/share/texmf/tex/latex/graphics/trig.sty) > (/usr/lib/texmf/tex/latex/config/graphics.cfg) > (/usr/share/texmf/tex/latex/graphics/dvips.def))) > (/usr/share/texmf/tex/latex/graphics/graphicx.sty) > (/usr/share/texmf/tex/latex/graphics/color.sty > (/usr/lib/texmf/tex/latex/config/color.cfg) > (/usr/share/texmf/tex/latex/graphics/dvipsnam.def)) > No file tmpkRUaxb.aux. > (/usr/share/texmf/tex/latex/base/ts1cmr.fd) > (/usr/share/texmf/tex/latex/psnfss/ot1pnc.fd) <tmpkRUaxb.eps> > > ! LaTeX Error: Something's wrong--perhaps a missing \item. > > See the LaTeX manual or LaTeX Companion for explanation. > Type H <return> for immediate help. > ... > > l.31 \includegraphics*[angle=0]{tmpkRUaxb.eps} > > [1] (./tmpkRUaxb.aux) ) > (see the transcript file for additional information) > Output written on tmpkRUaxb.dvi (1 page, 2980 bytes). > Transcript written on tmpkRUaxb.log. > > Is it a problem that it is using pdftex instead of pslatex? Yes. |
From: D2Hitman <j.m...@wa...> - 2009-08-12 11:13:13
|
Hi, I am trying to use a text label with a new line in the middle and then save the figure to .eps text(0.5, 0.5, r'a \\ b') savefig('test.eps') This results in: RuntimeError: LaTeX was not able to process your file: Here is the full report generated by LaTeX: This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) entering extended mode (/tmp/tmpkRUaxb.tex LaTeX2e <2005/12/01> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, basque, bulgarian, coptic, welsh, czech, slovak, german, ngerman, d anish, esperanto, spanish, catalan, galician, estonian, finnish, french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese, romani an, russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish, ukr ainian, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size10.clo)) (/usr/share/texmf/tex/latex/type1cm/type1cm.sty) (/usr/share/texmf/tex/latex/psnfss/helvet.sty (/usr/share/texmf/tex/latex/graphics/keyval.sty)) (/usr/share/texmf/tex/latex/psnfss/courier.sty) (/usr/share/texmf/tex/latex/base/textcomp.sty (/usr/share/texmf/tex/latex/base/ts1enc.def)) (/usr/share/texmf/tex/latex/geometry/geometry.sty Package geometry Warning: Over-specification in `h'-direction. `width' (614.295pt) is ignored. Package geometry Warning: Over-specification in `v'-direction. `height' (794.96999pt) is ignored. ) (/usr/share/texmf/tex/latex/psfrag/psfrag.sty (/usr/share/texmf/tex/latex/graphics/graphics.sty (/usr/share/texmf/tex/latex/graphics/trig.sty) (/usr/lib/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf/tex/latex/graphics/dvips.def))) (/usr/share/texmf/tex/latex/graphics/graphicx.sty) (/usr/share/texmf/tex/latex/graphics/color.sty (/usr/lib/texmf/tex/latex/config/color.cfg) (/usr/share/texmf/tex/latex/graphics/dvipsnam.def)) No file tmpkRUaxb.aux. (/usr/share/texmf/tex/latex/base/ts1cmr.fd) (/usr/share/texmf/tex/latex/psnfss/ot1pnc.fd) <tmpkRUaxb.eps> ! LaTeX Error: Something's wrong--perhaps a missing \item. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.31 \includegraphics*[angle=0]{tmpkRUaxb.eps} [1] (./tmpkRUaxb.aux) ) (see the transcript file for additional information) Output written on tmpkRUaxb.dvi (1 page, 2980 bytes). Transcript written on tmpkRUaxb.log. Is it a problem that it is using pdftex instead of pslatex? Can anyone offer any assistance? Cheers. Python 2.5.2 IPython 0.8.2 backend : GTKAgg -- View this message in context: http://www.nabble.com/EPS-with-TeX-tp24934313p24934313.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: P.R. <rom...@ho...> - 2009-08-12 04:37:59
|
Jeff, Nevermind... I figured out the problem... It appears that the grads mpl interface (pygrads) wasn't creating an appropriate mask for the data. All of the '-9.99e+8' values that correspond to 'undefined' points weren't being masked out, and were thus causing quiver to freak out & try to draw some extreme vector arrows... I fixed the mask, and it works fine now... Sorry for the bother, but thanks anyway for the help... Regards, P.R. -----Original Message----- From: Jeff Whitaker [mailto:js...@fa...] Sent: 2009-08-11 11:05 PM To: P.R. Cc: mat...@li... Subject: Re: [Matplotlib-users] problem with basemap/quiver with latest versions of basemap&mpl P.R. wrote: > Ok, I upgraded to numpy 1.30 and the problem still showed up... > Im still getting those strange diagonal line defects. > (looks as if some of the edge arrow polygons are being clipped/drawn/closed > improperly & thus 'dragged' across the plot area???) > > I attached my x,y,u,v arrays... > P.R. The file appears to be corrupted: In [4]: from numpy import load In [5]: load('xy_uv.npz').files Out[5]: ['y', 'x', 'u', 'v'] In [6]: load('xy_uv.npz')['u'] --------------------------------------------------------------------------- BadZipfile Traceback (most recent call last) /Users/jsw/python/basemap/<ipython console> in <module>() /opt/local/lib/python2.5/site-packages/numpy/lib/io.pyc in __getitem__(self, key) 110 key += '.npy' 111 if member: --> 112 bytes = self.zip.read(key) 113 if bytes.startswith(format.MAGIC_PREFIX): 114 value = cStringIO.StringIO(bytes) /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/zi pfile.pyc in read(self, name) 477 fheader = self.fp.read(30) 478 if fheader[0:4] != stringFileHeader: --> 479 raise BadZipfile, "Bad magic number for file header" 480 481 fheader = struct.unpack(structFileHeader, fheader) BadZipfile: Bad magic number for file header -Jeff > Here's my basemap setup... > m=bm(projection='cyl',llcrnrlat=20,urcrnrlat=30,llcrnrlon=-100,urcrnrlon=-80 > ,resolution='h') > > though it might not help much, here's the exact export from pygrads > (ga.expr() exports from grads into a customized masked array in python) > 'dirpw' is the grads variable being imported into mpl. > > U = ga.expr('(-1*sin(dirpw*3.1414/180))') > V = ga.expr('(-1*cos(dirpw*3.1414/180))') > X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) > > I then was also doing this to convert to simple ndarrays > (a while back, I was recommended this method to solve a problem I was having > with quiver performing really slowly when using those grads masked arrays as > input) > > x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) > > Let me know if you need anything else... > > Thanks, > P.R. > > > -----Original Message----- > From: Jeff Whitaker [mailto:js...@fa...] > Sent: 2009-08-11 9:26 PM > To: P.R. > Cc: mat...@li... > Subject: Re: [Matplotlib-users] problem with basemap/quiver with latest > versions of basemap&mpl > > P.R. wrote: > >> Hi, >> I just updated to the latest versions of mpl & basemap. >> Im getting strange output when using the quiver function from basemap (see >> attached image). >> >> I ran the quiver_demo scripts for both basemap & also mpl, and the output >> looked normal. >> >> Im using pygrads, a python interface to GrADS, in order to generate my >> X,Y,U,V input arrays for quiver. >> I can provide these arrays if needed... >> >> The data imported using pygrads previously worked fine (prior to updating >> > to > >> the new versions). >> >> Before I start diving into the pygrads code in order to troubleshoot, I >> wanted to first check to see if this issue is a possible quiver bug in the >> new version(s)... >> >> Or, were there any significant changes to the mpl/basemap code with >> > respect > >> to how quiver works??? >> >> Here's the basic method Im using... >> U = <my_pygrads_imported_U> >> V = <my_pygrads_imported_V> >> X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) >> #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), >> > V.ravel()) > >> cs2 = m.quiver(X,Y,U,V,*kwargs) >> >> again, this *used* to work fine, prior to the updates... >> >> Please help, >> Thanks, >> P.Romero >> >> > > P.R.: I can't see anything wrong - you'd better post your data so we > can try it. You might also try to upgrade to numpy 1.3.0, if you > haven't already, I know there were some masked array changes between > 1.2.1 and 1.3. > > -Jeff |
From: Jeff W. <js...@fa...> - 2009-08-12 04:05:59
|
P.R. wrote: > Ok, I upgraded to numpy 1.30 and the problem still showed up... > Im still getting those strange diagonal line defects. > (looks as if some of the edge arrow polygons are being clipped/drawn/closed > improperly & thus 'dragged' across the plot area???) > > I attached my x,y,u,v arrays... > P.R. The file appears to be corrupted: In [4]: from numpy import load In [5]: load('xy_uv.npz').files Out[5]: ['y', 'x', 'u', 'v'] In [6]: load('xy_uv.npz')['u'] --------------------------------------------------------------------------- BadZipfile Traceback (most recent call last) /Users/jsw/python/basemap/<ipython console> in <module>() /opt/local/lib/python2.5/site-packages/numpy/lib/io.pyc in __getitem__(self, key) 110 key += '.npy' 111 if member: --> 112 bytes = self.zip.read(key) 113 if bytes.startswith(format.MAGIC_PREFIX): 114 value = cStringIO.StringIO(bytes) /opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/zipfile.pyc in read(self, name) 477 fheader = self.fp.read(30) 478 if fheader[0:4] != stringFileHeader: --> 479 raise BadZipfile, "Bad magic number for file header" 480 481 fheader = struct.unpack(structFileHeader, fheader) BadZipfile: Bad magic number for file header -Jeff > Here's my basemap setup... > m=bm(projection='cyl',llcrnrlat=20,urcrnrlat=30,llcrnrlon=-100,urcrnrlon=-80 > ,resolution='h') > > though it might not help much, here's the exact export from pygrads > (ga.expr() exports from grads into a customized masked array in python) > 'dirpw' is the grads variable being imported into mpl. > > U = ga.expr('(-1*sin(dirpw*3.1414/180))') > V = ga.expr('(-1*cos(dirpw*3.1414/180))') > X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) > > I then was also doing this to convert to simple ndarrays > (a while back, I was recommended this method to solve a problem I was having > with quiver performing really slowly when using those grads masked arrays as > input) > > x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) > > Let me know if you need anything else... > > Thanks, > P.R. > > > -----Original Message----- > From: Jeff Whitaker [mailto:js...@fa...] > Sent: 2009-08-11 9:26 PM > To: P.R. > Cc: mat...@li... > Subject: Re: [Matplotlib-users] problem with basemap/quiver with latest > versions of basemap&mpl > > P.R. wrote: > >> Hi, >> I just updated to the latest versions of mpl & basemap. >> Im getting strange output when using the quiver function from basemap (see >> attached image). >> >> I ran the quiver_demo scripts for both basemap & also mpl, and the output >> looked normal. >> >> Im using pygrads, a python interface to GrADS, in order to generate my >> X,Y,U,V input arrays for quiver. >> I can provide these arrays if needed... >> >> The data imported using pygrads previously worked fine (prior to updating >> > to > >> the new versions). >> >> Before I start diving into the pygrads code in order to troubleshoot, I >> wanted to first check to see if this issue is a possible quiver bug in the >> new version(s)... >> >> Or, were there any significant changes to the mpl/basemap code with >> > respect > >> to how quiver works??? >> >> Here's the basic method Im using... >> U = <my_pygrads_imported_U> >> V = <my_pygrads_imported_V> >> X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) >> #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), >> > V.ravel()) > >> cs2 = m.quiver(X,Y,U,V,*kwargs) >> >> again, this *used* to work fine, prior to the updates... >> >> Please help, >> Thanks, >> P.Romero >> >> > > P.R.: I can't see anything wrong - you'd better post your data so we > can try it. You might also try to upgrade to numpy 1.3.0, if you > haven't already, I know there were some masked array changes between > 1.2.1 and 1.3. > > -Jeff |
From: P.R. <rom...@ho...> - 2009-08-12 03:31:26
|
Ok, I upgraded to numpy 1.30 and the problem still showed up... Im still getting those strange diagonal line defects. (looks as if some of the edge arrow polygons are being clipped/drawn/closed improperly & thus 'dragged' across the plot area???) I attached my x,y,u,v arrays... Here's my basemap setup... m=bm(projection='cyl',llcrnrlat=20,urcrnrlat=30,llcrnrlon=-100,urcrnrlon=-80 ,resolution='h') though it might not help much, here's the exact export from pygrads (ga.expr() exports from grads into a customized masked array in python) 'dirpw' is the grads variable being imported into mpl. U = ga.expr('(-1*sin(dirpw*3.1414/180))') V = ga.expr('(-1*cos(dirpw*3.1414/180))') X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) I then was also doing this to convert to simple ndarrays (a while back, I was recommended this method to solve a problem I was having with quiver performing really slowly when using those grads masked arrays as input) x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) Let me know if you need anything else... Thanks, P.R. -----Original Message----- From: Jeff Whitaker [mailto:js...@fa...] Sent: 2009-08-11 9:26 PM To: P.R. Cc: mat...@li... Subject: Re: [Matplotlib-users] problem with basemap/quiver with latest versions of basemap&mpl P.R. wrote: > Hi, > I just updated to the latest versions of mpl & basemap. > Im getting strange output when using the quiver function from basemap (see > attached image). > > I ran the quiver_demo scripts for both basemap & also mpl, and the output > looked normal. > > Im using pygrads, a python interface to GrADS, in order to generate my > X,Y,U,V input arrays for quiver. > I can provide these arrays if needed... > > The data imported using pygrads previously worked fine (prior to updating to > the new versions). > > Before I start diving into the pygrads code in order to troubleshoot, I > wanted to first check to see if this issue is a possible quiver bug in the > new version(s)... > > Or, were there any significant changes to the mpl/basemap code with respect > to how quiver works??? > > Here's the basic method Im using... > U = <my_pygrads_imported_U> > V = <my_pygrads_imported_V> > X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) > #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) > cs2 = m.quiver(X,Y,U,V,*kwargs) > > again, this *used* to work fine, prior to the updates... > > Please help, > Thanks, > P.Romero > P.R.: I can't see anything wrong - you'd better post your data so we can try it. You might also try to upgrade to numpy 1.3.0, if you haven't already, I know there were some masked array changes between 1.2.1 and 1.3. -Jeff |
From: Jeff W. <js...@fa...> - 2009-08-12 02:39:33
|
P.R. wrote: > Hi, > I just updated to the latest versions of mpl & basemap. > Im getting strange output when using the quiver function from basemap (see > attached image). > > I ran the quiver_demo scripts for both basemap & also mpl, and the output > looked normal. > > Im using pygrads, a python interface to GrADS, in order to generate my > X,Y,U,V input arrays for quiver. > I can provide these arrays if needed... > > The data imported using pygrads previously worked fine (prior to updating to > the new versions). > > Before I start diving into the pygrads code in order to troubleshoot, I > wanted to first check to see if this issue is a possible quiver bug in the > new version(s)... > > Or, were there any significant changes to the mpl/basemap code with respect > to how quiver works??? > > Here's the basic method Im using... > U = <my_pygrads_imported_U> > V = <my_pygrads_imported_V> > X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) > #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) > cs2 = m.quiver(X,Y,U,V,*kwargs) > > again, this *used* to work fine, prior to the updates... > > Please help, > Thanks, > P.Romero > P.R.: I can't see anything wrong - you'd better post your data so we can try it. You might also try to upgrade to numpy 1.3.0, if you haven't already, I know there were some masked array changes between 1.2.1 and 1.3. -Jeff |
From: <rom...@gm...> - 2009-08-12 02:12:22
|
Hi, I just updated to the latest versions of mpl & basemap. Im getting strange output when using the quiver function from basemap (see attached image). I ran the quiver_demo scripts for both basemap & also mpl, and the output looked normal. Im using pygrads, a python interface to GrADS, in order to generate my X,Y,U,V input arrays for quiver. I can provide these arrays if needed... The data imported using pygrads previously worked fine (prior to updating to the new versions). Before I start diving into the pygrads code in order to troubleshoot, I wanted to first check to see if this issue is a possible quiver bug in the new version(s)... Or, were there any significant changes to the mpl/basemap code with respect to how quiver works??? Here's the basic method Im using... U = <my_pygrads_imported_U> V = <my_pygrads_imported_V> X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) cs2 = m.quiver(X,Y,U,V,*kwargs) again, this *used* to work fine, prior to the updates... Please help, Thanks, P.Romero |
From: P.R. <rom...@ho...> - 2009-08-12 01:48:13
|
Hi, I just updated to the latest versions of mpl & basemap. Im getting strange output when using the quiver function from basemap (see attached image). I ran the quiver_demo scripts for both basemap & also mpl, and the output looked normal. Im using pygrads, a python interface to GrADS, in order to generate my X,Y,U,V input arrays for quiver. I can provide these arrays if needed... The data imported using pygrads previously worked fine (prior to updating to the new versions). Before I start diving into the pygrads code in order to troubleshoot, I wanted to first check to see if this issue is a possible quiver bug in the new version(s)... Or, were there any significant changes to the mpl/basemap code with respect to how quiver works??? Here's the basic method Im using... U = <my_pygrads_imported_U> V = <my_pygrads_imported_V> X,Y=m(*np.meshgrid(U.grid.lon,U.grid.lat)) #x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) cs2 = m.quiver(X,Y,U,V,*kwargs) again, this *used* to work fine, prior to the updates... Please help, Thanks, P.Romero |