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) 

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) 
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) 
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) 
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) 
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) 
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) 
2012 
_{Jan}
(322) 
_{Feb}
(414) 
_{Mar}
(377) 
_{Apr}
(179) 
_{May}
(173) 
_{Jun}
(234) 
_{Jul}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

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) 
S  M  T  W  T  F  S 


1
(13) 
2
(12) 
3
(3) 
4
(13) 
5
(13) 
6
(2) 
7
(5) 
8
(17) 
9
(9) 
10
(10) 
11
(16) 
12
(8) 
13
(10) 
14
(1) 
15
(5) 
16
(5) 
17
(7) 
18
(13) 
19
(9) 
20

21

22
(2) 
23
(3) 
24
(5) 
25
(5) 
26
(14) 
27
(1) 
28
(2) 
29
(18) 
30
(5) 
31
(22) 



From: Jed Frechette <jedfrechette@gm...>  20071031 22:34:46

I'm trying to generate rose plots (circular histograms) using MPL but have been unable to find a straight forward way to do it. I want to take the polar_bar.py example and modify it to use the geographic rather than the mathematical convention for measuring angles, that is 0 is at the top of the plot and increasing clockwise. It seems like this should be possible using Transformations but I am at a loss for how to begin. Any hints would be greatly appreciated. Thanks,  Jed Frechette jdfrechette.alturl.com 
From: Eric Firing <efiring@ha...>  20071031 21:24:43

John, We actually have the facility for using a log color scale directly, including handling outofrange values, but I confess I am having a little trouble with it. I can't pursue it right now, but probably can do so this evening. It looks like the problem is a bug, but I am not sure. Eric 
From: Jeff Whitaker <jswhit@fa...>  20071031 20:47:30

John wrote: > Well, it seems like I'm making progress, but it's stll not the plot > I'm hoping to produce. Something seems strange. First, it does create > a contourf plot, but I really need to take log(zdata) and use imshow > (which seems to handly the INF issue, wheras contourf crashes). On > another issue though, once the image is created, when I draw the map > components it covers the image entirely.. so I just see coastlines, > meridians, etc on a whilte background as if I had never plotted the data. > > Thanks for helping with this! I'm really trying to make a movement > with my colleagues away from matlab, but I need to have things > operating more smoothly... lately it hasn't been going so well. This > is a great product you've made! John: I think you need to send a selfcontained script that triggers the error you are seeing. Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: John <washakie@gm...>  20071031 20:32:22

Well, it seems like I'm making progress, but it's stll not the plot I'm hoping to produce. Something seems strange. First, it does create a contourf plot, but I really need to take log(zdata) and use imshow (which seems to handly the INF issue, wheras contourf crashes). On another issue though, once the image is created, when I draw the map components it covers the image entirely.. so I just see coastlines, meridians, etc on a whilte background as if I had never plotted the data. Thanks for helping with this! I'm really trying to make a movement with my colleagues away from matlab, but I need to have things operating more smoothly... lately it hasn't been going so well. This is a great product you've made! 
From: John <washakie@gm...>  20071031 20:23:31

Hold on, see my errors, trying again.... 
From: John <washakie@gm...>  20071031 20:19:58

Shoot, still getting the error discussed above: ValueError: shape mismatch: objects cannot be broadcast to a single shapeFile "c:\07_jfb\Programming\Python\mod_flexpart\plotPickle.py", line 30, in <module> fp_plot(z); File "c:\07_jfb\Programming\Python\mod_flexpart\plotflex.py", line 55, in fp_plot cs = m.contourf(x,y,zdat) File "c:\Python25\Lib\sitepackages\matplotlib\toolkits\basemap\basemap.py", line 2439, in contourf mask = NX.logical_or(ma.getmaskarray(data),xymask) What seems strange, is that after following your instructions: nx = int((m.xmaxm.xmin)/20000.)+1; ny = int((m.ymaxm.ymin)/20000.)+1 zdat,x,y = m.transform_scalar(Zdat,lons,lats,nx,ny,returnxy=True) lons, lats = N.meshgrid(lons, lats) x, y = m(lons, lats) # map is the Basemap instance cs = m.contourf(x,y,zdat) The shape of my zdat no longer fits?? >>> print [N.shape(i) for i in [x,y,zdat]] [(180, 360), (180, 360), (596, 596)] 
From: Jeff Whitaker <jswhit@fa...>  20071031 20:09:16

John wrote: > No, it didn't get cut off, I just decided to move that section forward > before the code and forgot to delete that line ;) > > Okay, let's see... > > 1) Yes, I've left them in for the moment since I saw that they will be > ignored, and I'm playing with different projections... seems it > doesn't hurt. > > 2) Yes, it would appear zdat is an array of 0.0 > > 3) With contourf, I get a mismatch... not sure where: > ValueError: shape mismatch: objects cannot be broadcast to a single shape > File "c:\Python\mod\plotPickle.py", line 30, in <module> > fp_plot(z); > File "c:\Python\mod\plotf.py", line 55, in fp_plot > m.contourf(lons,lats,Zdat) > File > "c:\Python25\Lib\sitepackages\matplotlib\toolkits\basemap\basemap.py", > line 2436, in contourf > xymask = NX.logical_or(NX.greater(x,1.e20),NX.greater(y,1.e20)) > > Here is the information about the numpy.arrays I'm using: > >>> N.shape(lons);N.shape(lats);N.shape(Zdat) > (360,) > (180,) > (180, 360) > > I tried: m.contourf(lons,lats,Zdat.transose()) as well, and receive > the same error. > > Thanks again! Try adding this just before the contourf call lons, lats = numpy.meshgrid(lons, lats) x, y = m(lons, lats) # map is the Basemap instance then use cs = m.contourf(x,y,zdat) x,y have to be in map projection coordinates, and they must be 2D. Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: John <washakie@gm...>  20071031 19:32:27

Also, I don't know if it's related, but I'm getting this Error / Warning: UnboundLocalError: local variable 'pylab' referenced before assignment Traceback: File "c:\Python25\lib\sitepackages\matplotlib\toolkits\basemap\basemap.py", line 2232, in imshow ax = pylab.gca() As my script calls the various basemap.py methods(imshow, drawcoastlines, drawcountries, etc.) 
From: John <washakie@gm...>  20071031 19:18:30

No, it didn't get cut off, I just decided to move that section forward before the code and forgot to delete that line ;) Okay, let's see... 1) Yes, I've left them in for the moment since I saw that they will be ignored, and I'm playing with different projections... seems it doesn't hurt. 2) Yes, it would appear zdat is an array of 0.0 3) With contourf, I get a mismatch... not sure where: ValueError: shape mismatch: objects cannot be broadcast to a single shape File "c:\Python\mod\plotPickle.py", line 30, in <module> fp_plot(z); File "c:\Python\mod\plotf.py", line 55, in fp_plot m.contourf(lons,lats,Zdat) File "c:\Python25\Lib\sitepackages\matplotlib\toolkits\basemap\basemap.py", line 2436, in contourf xymask = NX.logical_or(NX.greater(x,1.e20),NX.greater(y,1.e20)) Here is the information about the numpy.arrays I'm using: >>> N.shape(lons);N.shape(lats);N.shape(Zdat) (360,) (180,) (180, 360) I tried: m.contourf(lons,lats,Zdat.transose()) as well, and receive the same error. Thanks again! 
From: David Huard <david.huard@gm...>  20071031 18:04:48

I'd like to thank all those who participated in fixing this bug. It's much appreciated. David 2007/10/29, John Hunter <jdh2358@...>: > > On 10/29/07, Michael Droettboom <mdroe@...> wrote: > > > I submitted a fix for this in matplotlib SVN r4047. Freetype takes a > > FT_LOAD_FORCE_AUTOHINT flag to force it to bypass the patented bytecode > > hinter at runtime (even if it was compiled in). This appears to fix the > > problem, and doesn't force people to recompile their freetype  they > > should now get identical results regardless. > > Andrew Straw and I taught a workshop at the Claremont Colleges this > weekend and I was running mpl from svn. When I brought up the 1st > figure in ipython pylab mode running GTKAgg, the fonts were totally > whacked (see attached) and I was reminded of why they call it "the > bleeding edge". Fortunately, it only affected the first draw of an > ipython session. For example, a figure resize, which triggers the > draw, made the problem go away, and subsequent figures were fine. > Odd. I just updated from svn and it looks like the problem is gone on > that machine, so I hope this was the source of the problem (the > workshop machine was running opensuse) > > In [2]: !uname a > Linux ns3 2.6.18.80.5bigsmp #1 SMP Fri Jun 22 12:17:53 UTC 2007 i686 > i686 i386 GNU/Linux > > In other news, TkAgg is segfaulting in that environment, but I haven't > had time to track it down since I was busy preparing the course > material. > > JDH > >  > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > > > 
From: Jeff Whitaker <jswhit@fa...>  20071031 16:53:30

John wrote: > Jeff, > > Thanks for the quick reply, below is my plotting code. Here are the > answers to your question about my arrray: > > >>> type(Zdat); type(zdat) > <type 'numpy.ndarray'> > <type 'numpy.ndarray'> > >>> shape(Zdat); shape(zdat) > (180, 360) > (596, 596) > >>> shape(lons); shape(x) > (360,) > (596, 596) > >>> shape(lats); shape(y) > (180,) > (596, 596) > > I would like to use contourf, but ultimately I want to plot the > log(zdat), and since my data have so many null or zero values, I can't > get that to work with contourf, whereas imshow seems to handle it. > > Thanks!! > > > > PLOTTING FUNCTION HERE: > > def fp_plot(datain): > from matplotlib.toolkits.basemap import Basemap, shiftgrid > > Zdat=datain; > n,m=N.shape(Zdat) > lons=N.array([i179.5 for i in range(m)]) > lats=N.array([i89.5 for i in range(n)]) > print "The array is bounded: %s : %s lat, %s : %s lon " % > (N.min(lats),N.max(lats),N.min(lons),N.max(lons)) > # Set up basmap. > m = > Basemap(llcrnrlon=180.,llcrnrlat=90.,urcrnrlon=180.,urcrnrlat= 90.0,\ > rsphere=(6378137.00,6356752.3142),\ > resolution='l',area_thresh=1000.,projection='npstere',\ > lat_1=80.,lon_0=0., boundinglat=40.) > # transform to nx x ny regularly spaced native projection grid > nx = int((m.xmaxm.xmin)/20000.)+1; ny = int((m.ymaxm.ymin)/20000.)+1 > zdat,x,y = m.transform_scalar(Zdat,lons,lats,nx,ny,returnxy=True) > # create the figure. > fig=figure(figsize=(12,8)) > # add an axes, leaving room for colorbar on the right. > ax = fig.add_axes([0.1,0.1,0.7,0.7]) > > # plot image over map with imshow. Want to use this, but no > success yet. > anorm=normalize(.015*N.max(zdat),0.95*N.max(zdat)); > # Draw flexpart output > m.imshow(x,y,zdat) > > # Draw map components > m.drawcoastlines() > m.drawcountries() > m.drawstates() > meridians=arange(170.,180.,20.) > m.drawmeridians(meridians,labels=[1,1,0,0]) > paralles=arange(85.,85.,5.) > m.drawparallels(paralles, labels=[0,0,0,1]); show(); > > Now, to answer your question, Zdat, or datain is a numpy array with > the following characteristics: > > > > > John: Looks like some of your message got cut off. Just a few comments so far: 1) you don't need the llcrnrlat,llcrnrlon,urcrnrlat,urcrnrlon args when creating a Basemap instance with projection='npstere'. They should just be ignored though, so I don't think this is the problem. 2) what exactly happens when you run this script? Do you just get an array of zeros for zdat? 3) what happens when you use contourf? It should work just as well as imshow, and would save you the extra interpolation step. pcolor is another option that would not require interpolation. Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: John <washakie@gm...>  20071031 16:48:44

Jeff, Thanks for the quick reply, below is my plotting code. Here are the answers to your question about my arrray: >>> type(Zdat); type(zdat) <type 'numpy.ndarray'> <type 'numpy.ndarray'> >>> shape(Zdat); shape(zdat) (180, 360) (596, 596) >>> shape(lons); shape(x) (360,) (596, 596) >>> shape(lats); shape(y) (180,) (596, 596) I would like to use contourf, but ultimately I want to plot the log(zdat), and since my data have so many null or zero values, I can't get that to work with contourf, whereas imshow seems to handle it. Thanks!! PLOTTING FUNCTION HERE: def fp_plot(datain): from matplotlib.toolkits.basemap import Basemap, shiftgrid Zdat=datain; n,m=N.shape(Zdat) lons=N.array([i179.5 for i in range(m)]) lats=N.array([i89.5 for i in range(n)]) print "The array is bounded: %s : %s lat, %s : %s lon " % (N.min(lats), N.max(lats),N.min(lons),N.max(lons)) # Set up basmap. m = Basemap(llcrnrlon=180.,llcrnrlat=90.,urcrnrlon=180.,urcrnrlat=90.0 ,\ rsphere=(6378137.00,6356752.3142),\ resolution='l',area_thresh=1000.,projection='npstere',\ lat_1=80.,lon_0=0., boundinglat=40.) # transform to nx x ny regularly spaced native projection grid nx = int((m.xmaxm.xmin)/20000.)+1; ny = int((m.ymaxm.ymin)/20000.)+1 zdat,x,y = m.transform_scalar(Zdat,lons,lats,nx,ny,returnxy=True) # create the figure. fig=figure(figsize=(12,8)) # add an axes, leaving room for colorbar on the right. ax = fig.add_axes([0.1,0.1,0.7,0.7]) # plot image over map with imshow. Want to use this, but no success yet. anorm=normalize(.015*N.max(zdat),0.95*N.max(zdat)); # Draw flexpart output m.imshow(x,y,zdat) # Draw map components m.drawcoastlines() m.drawcountries() m.drawstates() meridians=arange(170.,180.,20.) m.drawmeridians(meridians,labels=[1,1,0,0]) paralles=arange(85.,85.,5.) m.drawparallels(paralles, labels=[0,0,0,1]); show(); Now, to answer your question, Zdat, or datain is a numpy array with the following characteristics: 
From: Jeff Whitaker <jswhit@fa...>  20071031 16:25:54

John wrote: > Can anyone explain this?? > > >>> N.max(Zdat) #this is numpy.max function > 1302.73592859 > >>> zdat,x,y = > m.transform_scalar(Zdat,lons,lats,nx,ny,returnxy=True,order=0) > >>> N.max (zdat) > 0.0 > >>> > > In this case, Zdat is my original array sent to my plotting function. > It seems to lose all it's data when I run transform_scalar. I've tried > it with order=1 as well, with the same result. Am I missing something? > > I'm having a really hard time getting basemap to work using either > imshow or contourf. Any help would be greatly appreciated. > > Thanks! John: I'll need more info about the Zdat array. It should be a 2D array on a lat/lon grid whose longitudes (the 2nd dimension) are given by the 1d array lons, and whose latitudes (the first dimension) are given by the 1d array lats. lats and lons should be given in degrees. transform_scalar should then return an array of shape (ny,nx) on a regular grid in map projection coordinates. Note that to use contourf you don't have to use transform_scalar, you can just plot the data on the original lat/lon grid. Below is the transform_scalar docstring for reference: def transform_scalar(self,datin,lons,lats,nx,ny,returnxy=False,checkbounds=False,order=1,masked=False): """ interpolate a scalar field (datin) from a lat/lon grid with longitudes = lons and latitudes = lats to a (ny,nx) native map projection grid. Typically used to transform data to map projection coordinates so it can be plotted on the map with imshow. lons, lats must be rank1 arrays containing longitudes and latitudes (in degrees) of datin grid in increasing order (i.e. from dateline eastward, and South Pole northward). For noncylindrical projections (those other than cylindrical equidistant, mercator and miller) lons must fit within range 180 to 180. if returnxy=True, the x and y values of the native map projection grid are also returned. If checkbounds=True, values of lons and lats are checked to see that they lie within the map projection region. Default is False. If checkbounds=False, points outside map projection region will be clipped to values on the boundary if masked=False. If masked=True, the return value will be a masked array with those points masked. The order keyword can be 0 for nearestneighbor interpolation, or 1 for bilinear interpolation (default 1).""" Jeff  Jeffrey S. Whitaker Phone : (303)4976313 Meteorologist FAX : (303)4976449 NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@... 325 Broadway Office : Skaggs Research Cntr 1D124 Boulder, CO, USA 803033328 Web : http://tinyurl.com/5telg 
From: Jose GomezDans <jgomezdans@gm...>  20071031 15:58:26

Hi, Some colleagues have sent some plots which they generated using IDL (boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib ones. I would like to mimic their layout as much as possible, which so far is a success. The only problem is that I don't know what font to use. In IDL, I believe it is called "Roman" (there's an smudged example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>;). Does anyone know a suitable alternative? Thanks! Jose 
From: John <washakie@gm...>  20071031 15:37:10

Can anyone explain this?? >>> N.max(Zdat) #this is numpy.max function 1302.73592859 >>> zdat,x,y = m.transform_scalar (Zdat,lons,lats,nx,ny,returnxy=True,order=0) >>> N.max(zdat) 0.0 >>> In this case, Zdat is my original array sent to my plotting function. It seems to lose all it's data when I run transform_scalar. I've tried it with order=1 as well, with the same result. Am I missing something? I'm having a really hard time getting basemap to work using either imshow or contourf. Any help would be greatly appreciated. Thanks! 
From: Steve Schmerler <elcorto@gm...>  20071031 14:53:36

I installed svn r4071. `svn info <working copy>` and `svnversion <working copy>` report the correct rev number. But $ ipython pylab In [1]: matplotlib.__version__ Out[1]: '0.90.1' In [2]: matplotlib.__revision__ Out[2]: '$Revision: 3975 $' If I'm right, this is because in matplotlib/__init__.py: __revision__ = '$Revision: 3975 $' which is the last rev where *this file* changed. Shouldn't matplotlib.__revision__ report the latest global revision number? Like that: import subprocess as su p = su.Popen('svnversion <path/to/working copy>', shell=True, stdin=su.PIPE, stdout=su.PIPE) revnr = p.stdout.read().strip() print revnr  cheers, steve I love deadlines. I like the whooshing sound they make as they fly by.  Douglas Adams 
From: John Hunter <jdh2358@gm...>  20071031 13:21:41

On 10/31/07, Mark Bakker <markbak@...> wrote: > This works fine, as apparantly colors='r' is interpreted as a sequence. > This does not work, however: > > ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r', linewidths=2 > ) ) > draw() > > Now I get an error: TypeError: CXX: type error. That's not too helpful. This is fixed in svn  now collection properties should work with a scalar or iterable so if you find more problems, let us know. JDH 
From: John <washakie@gm...>  20071031 12:36:42

That is one solution, but perhaps I should have asked about a solution for contourf as well. It would be preferable to be able to use a logarithmic colormap rather than translating the variable. 
From: Mark Bakker <markbak@gm...>  20071031 12:19:32

Hello  I got confused about specifying colors and linewidths for LineCollections. I think it would be helpful if the docstrings explicitly state that they should be sequences. I know, they do in some way, but it i Maybe we should even check this on input, as the error message you get when you don't do that is confusing. Let me explain: from pylab import * from matplotlib.collections import LineCollection ax = subplot(111) ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r' ) ) draw() This works fine, as apparantly colors='r' is interpreted as a sequence. This does not work, however: ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r', linewidths=2 ) ) draw() Now I get an error: TypeError: CXX: type error. That's not too helpful. What does work is ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r', linewidths=[2] ) ) draw() Maybe the confusing part is that just specifying colors='r' works. Thanks, Mark ps. I do all the draws as I am in interactive mode. 
From: sunzen w. <sunzen@gm...>  20071031 03:18:00

The question is: how to enable panning/zooming operation to be constrained to the x axis or y axis? The Tutorial says, [about Pam Mode] If you press 'x' or 'y' while panning, the motion will be contrained to the x or y axis, respectively [about Zoom Mode] You can use the modifier keys 'x', 'y' or 'CONTROL' to constrain the zoom to the x axes, the y axes, or aspect ratio preserve, respectively. I find it really works for some examples, such as stock_demo.py. However, it currently can't work on my canvas. Is there any special setting so as to enable the functionality? Thanks for your guidance in advance.  sunzen <<freedom & enjoyment>> 
From: sunzen w. <sunzen@gm...>  20071031 03:05:09

Just for information, i change from broken_barh to just barh, so as to easily set picker property. It satisfies my needs now. Just for exploration, does anyone know how to implement it by using broken_barh()? On 10/26/07, sunzen w. <sunzen@...> wrote: > > Hi Gurus, > (I'm sorry for sending the above unfinished one) > I'm new to matplotlib programming, and get puzzled about designing > picking handler for broken_barh by the OO interface. > Could you give me any guidance? Any your help will be appreciated. > > >  sunzen <<freedom & enjoyment>> 
From: Eric Firing <efiring@ha...>  20071031 02:47:21

washakie wrote: > Hello, > > I'm trying to find a way to use imshow or contourf with a logarithmic > colormap. Searching the threads I've found a few queries about this before, > but not a solution. Any suggestions? > > Thanks! Maybe I am not understanding correctly, but could you simply plot the log of your variable? Eric 
From: washakie <washakie@gm...>  20071030 22:49:35

Hello, I'm trying to find a way to use imshow or contourf with a logarithmic colormap. Searching the threads I've found a few queries about this before, but not a solution. Any suggestions? Thanks!  View this message in context: http://www.nabble.com/contourfimshowlogarithmiccolormaptf4721777.html#a13499467 Sent from the matplotlib  users mailing list archive at Nabble.com. 
From: Eric Firing <efiring@ha...>  20071030 20:35:54

Martinho MA wrote: > hello, I have a problem quiver: > In my code there is: > > fill(...) > quiver(..) > > but the arrows stay under the fill !! If I would like it, with a bit of > logic, I would wrote: > > quiver(...) > fill(...) q = quiver(...) q.set_zorder(10) This will ensure the arrows are drawn on top of everything else. > > Any help? > By the way, how to make an extra arrow to be used as a scale, with some > text anotation? In the examples directory, see quiver_demo.py. It includes the quiverkey command, which is designed for exactly this. Eric 
From: Martinho MA <mma@ua...>  20071030 18:17:20

hello, I have a problem quiver: In my code there is: fill(...) quiver(..) but the arrows stay under the fill !! If I would like it, with a bit of logic, I would wrote: quiver(...) fill(...) Any help? By the way, how to make an extra arrow to be used as a scale, with some text anotation? Thanks MM 