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}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 







1
(11) 
2

3
(6) 
4
(19) 
5
(20) 
6
(3) 
7
(9) 
8
(1) 
9
(1) 
10
(8) 
11
(4) 
12
(15) 
13
(6) 
14
(14) 
15
(3) 
16
(3) 
17
(2) 
18
(9) 
19
(11) 
20
(26) 
21
(12) 
22
(2) 
23
(6) 
24
(9) 
25
(6) 
26
(16) 
27
(13) 
28
(4) 
29

30
(3) 






From: Eric Firing <efiring@ha...>  20070924 19:06:17

Perry Greenfield wrote: > On Sep 24, 2007, at 2:32 PM, Tommy Grav wrote: > >> I need to generate a set of histograms, but would like to plot only >> the "skyline" >> of the histogram, and leave out the vertical lines where adjencent >> bars touch. >> I have looked at the docs, but nothing jumped out at me as the right >> keyword >> for this. Is this possible? and if so, how? > > I believe that you can do the same thing using the regular plot > command with linestyles='steps' (but I think you need to fiddle with > the x values so that the steps are aligned properly. But it would be > nice if hist could do this too. There is also an axes step() method in svn. Eric 
From: Matthew Auger <mauger@ph...>  20070924 18:59:40

I wrote the following code to do this for me...it is not entirely general (in the sense that it doesn't accept all kwargs beyond bins and hatch) and also allows me to do my own normalization.... But you should be able to use it pretty easily. def open_hist(arr,bins=10,norm=None,hatch=None): import matplotlib as mpl import pylab # Get all of the scaling right by allowing pylab to do it. d = pylab.hist(arr,bins) ax = pylab.gca() for i in d[2]: ax.patches.remove(i) width = d[1][1]d[1][0] if norm is None: norm = 1. else: norm = float(norm) # Determine the vertices of the noline histogram. verts = [] for i in range(len(d[0])): if i==0: x = d[1][i] y = 0. verts.append((x,y)) if i==len(d[0])1: x = d[1][i] y = d[0][i]/norm verts.append((x,y)) x = d[1][i]+width verts.append((x,y)) y = 0. verts.append((x,y)) else: x = d[1][i] y = d[0][i]/norm verts.append((x,y)) x = d[1][i]+width verts.append((x,y)) # Let pylab do its thing.... p = pylab.Polygon(verts,transform=ax.transData,hatch=hatch) p.set_fill(0) ax.add_patch(p) On Mon, 24 Sep 2007, Tommy Grav wrote: > I need to generate a set of histograms, but would like to plot only > the "skyline" > of the histogram, and leave out the vertical lines where adjencent > bars touch. > I have looked at the docs, but nothing jumped out at me as the right > keyword > for this. Is this possible? and if so, how? > > Cheers > Tommy > >  > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers > 
From: Perry Greenfield <perry@st...>  20070924 18:42:16

On Sep 24, 2007, at 2:32 PM, Tommy Grav wrote: > I need to generate a set of histograms, but would like to plot only > the "skyline" > of the histogram, and leave out the vertical lines where adjencent > bars touch. > I have looked at the docs, but nothing jumped out at me as the right > keyword > for this. Is this possible? and if so, how? I believe that you can do the same thing using the regular plot command with linestyles='steps' (but I think you need to fiddle with the x values so that the steps are aligned properly. But it would be nice if hist could do this too. Perry 
From: Tommy Grav <tgrav@ma...>  20070924 18:32:43

I need to generate a set of histograms, but would like to plot only the "skyline" of the histogram, and leave out the vertical lines where adjencent bars touch. I have looked at the docs, but nothing jumped out at me as the right keyword for this. Is this possible? and if so, how? Cheers Tommy 
From: Eric Firing <efiring@ha...>  20070924 17:59:35

Mike, pcolor has had masked array support for a long time. Please send a minimal but complete example of a script that fails; based on what you sent below, I can't tell what the problem is. Eric Mike Bauer wrote: > Howdy, > > I'm a recent refugee from GMT (Generic Mapping Tools) and am very happy > to have found matplotlib. > > I've been having one nagging issue however that I must resolve as I > require this ability. Basically, I need to mask 2d arrays and plot the > result with pcolor via basemap. > > From the documentation it seems this should be fairly straight forward > and I'm hoping that this is the case. > > Here is an example of problem. >  > from pylab import * > import matplotlib.numerix.ma <http://matplotlib.numerix.ma>; as ma # > matplotlibrc has numerix : numpy > from matplotlib.toolkits.basemap import Basemap, shiftgrid, addcyclic > import numpy as N > . > . > . > > im = 144 > jm = 93 > lons = N.array([0., ... 357.5],dtype=float) > lats = N.array([90., ... 90.],dtype=float) > topo_screen = N.zeros((jm,im),dtype='float') > topo_screen[10] = 1 > new_test = 100.* N.ones((jm,im),dtype='float') > masked_test = ma.masked_where(topo_screen,new) > > This works and a screen dump of masked_test seem correct. > > A call to pcolor however results in the following: > matplotlib version 0.90.1 > verbose.level helpful > interactive is False > units is True > platform is linux2 > numerix numpy 1.0.1 > . > . > . > /usr/local/lib/python2.5/sitepackages/numpy/core/ma.py:604: > UserWarning: Cannot automatically convert masked array to numeric > because data is masked in one or more locations. >  > > Is this an embarrassingly simple error on my part? I hope so. Any help > would be much appreciated. > > Mike > > >  > >  > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >  > > _______________________________________________ > Matplotlibusers mailing list > Matplotlibusers@... > https://lists.sourceforge.net/lists/listinfo/matplotlibusers 
From: Mike Bauer <ohtinsel@gm...>  20070924 17:46:59

Howdy, I'm a recent refugee from GMT (Generic Mapping Tools) and am very happy to have found matplotlib. I've been having one nagging issue however that I must resolve as I require this ability. Basically, I need to mask 2d arrays and plot the result with pcolor via basemap. >From the documentation it seems this should be fairly straight forward and I'm hoping that this is the case. Here is an example of problem.  from pylab import * import matplotlib.numerix.ma as ma # matplotlibrc has numerix : numpy from matplotlib.toolkits.basemap import Basemap, shiftgrid, addcyclic import numpy as N . . . im = 144 jm = 93 lons = N.array([0., ... 357.5],dtype=float) lats = N.array([90., ... 90.],dtype=float) topo_screen = N.zeros((jm,im),dtype='float') topo_screen[10] = 1 new_test = 100.*N.ones((jm,im),dtype='float') masked_test = ma.masked_where(topo_screen,new) This works and a screen dump of masked_test seem correct. A call to pcolor however results in the following: matplotlib version 0.90.1 verbose.level helpful interactive is False units is True platform is linux2 numerix numpy 1.0.1 . . . /usr/local/lib/python2.5/sitepackages/numpy/core/ma.py:604: UserWarning: Cannot automatically convert masked array to numeric because data is masked in one or more locations.  Is this an embarrassingly simple error on my part? I hope so. Any help would be much appreciated. Mike 
From: Mike Bauer <ohtinsel@ma...>  20070924 15:17:40

Howdy, I'm a recent refugee from GMT (Generic Mapping Tools) and am very happy to have found matplotlib. I've been having one nagging issue however that I must resolve as I require this ability. Basically, I need to mask 2d arrays and plot the result with pcolor via basemap. From the documentation it seems this should be fairly straight forward and I'm hoping that this is the case. Here is an example of problem.  from pylab import * import matplotlib.numerix.ma as ma # matplotlibrc has numerix : numpy from matplotlib.toolkits.basemap import Basemap, shiftgrid, addcyclic import numpy as N . . . im = 144 jm = 93 lons = N.array([0., ... 357.5],dtype=float) lats = N.array([90., ... 90.],dtype=float) topo_screen = N.zeros((jm,im),dtype='float') topo_screen[10] = 1 new_test = 100.*N.ones((jm,im),dtype='float') masked_test = ma.masked_where(topo_screen,new) This works and a screen dump of masked_test seem correct. A call to pcolor however results in the following: matplotlib version 0.90.1 verbose.level helpful interactive is False units is True platform is linux2 numerix numpy 1.0.1 . . . /usr/local/lib/python2.5/sitepackages/numpy/core/ma.py:604: UserWarning: Cannot automatically convert masked array to numeric because data is masked in one or more locations.  Is this an embarrassingly simple error on my part? I hope so. Any help would be much appreciated. Mike 
From: Emanuele Passera <emanuele.passera@tr...>  20070924 10:29:09

Hi all, I want to plot an irregular grid of points with x coordinates that can assume values between 0 and 13216 and y coordinates that can assume values between 0 and 8985 on a transparent canvas and save it as a .png file. I use Agg backend. I would like than to superimpose the obtained .png image over another image (not obtained with matplotlib and not with python) of 13217 x 8986 pixels. This because the irregular grid points of the first image are pixels of the second image. I have write this script where samples = 13217 lines = 8986 dpi = 100 xvect and yvect 2 numpy vectors that i have to convert to lists. # data aspect ratio data_aspect_ratio = samples / float(lines) # figure axis inches dimension x_axis_inches = lines / float(dpi) y_axis_inches = data_aspect_ratio * x_axis_inches # drawing figure canvas figure_label = p.figure(facecolor = 'w', edgecolor = 'w', figsize=(x_axis_inches, y_axis_inches), frameon = False) # main axes enlarging to fill all vanvas main_axes = p.axes([0, 0, 1, 1]) # plot grid points_1 = p.plot(xvect.tolist(), yvect.tolist(), 'D') # grid setting properties p.setp(points_1, markersize = 30, markeredgecolor = 'b', markerfacecolor = 'None', markeredgewidth = 7) main_axes.axis([0, lines, 0, samples]) # transparence main_axes.axesPatch.set_alpha(0.0) # deleting asix ticks p.setp(main_axes, xticks = [], yticks = []) # reversing y axis y_reversing = main_axes.set_ylim(main_axes.get_ylim()[::1]) # image saving p.savefig(out_image_file, dpi = dpi) # closing figure p.close(figure_label) The problem is that i obtain a .png image of 13216 x 8985 pixels and not of 13217 x 8986 pixels as i planned. What can it be the problem ? Thank you all.   Emanuele Passera 
From: <jks@ik...>  20070924 03:55:00

yadin Bocuma Rivas <conra2004@...> writes: > i want to generate a contour plot [...] an example will be very > helpfull Please see examples/contour_demo.py in the matplotlib distribution and http://matplotlib.sourceforge.net/matplotlib.pylab.html#contour  Jouni K. Seppänen http://www.iki.fi/jks 