Re: [Matplotlib-users] Problem saving open symbols in PDF

2012-10-16 Thread Eric Firing
On 2012/10/16 4:27 PM, Gökhan Sever wrote: > Hello, > > I see that a few days old clone of mpl, cannot save open symbols > correctly in a pdf file. > > Here is a simple test case (in ipython --pylab): > > I6 xx = np.random.random(1000) > > I7 plt.plot(xx, 'D', mfc='none') > > On screen open symbols

[Matplotlib-users] Problem saving open symbols in PDF

2012-10-16 Thread Gökhan Sever
Hello, I see that a few days old clone of mpl, cannot save open symbols correctly in a pdf file. Here is a simple test case (in ipython --pylab): I6 xx = np.random.random(1000) I7 plt.plot(xx, 'D', mfc='none') On screen open symbols are fine, as expected transparency works fine, however when s

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
On 10/16/12 11:20 AM, Rich Signell wrote: > Jeff, > Yep, that worked! So here is a working example of OWSlib with > Basemap: http://nbviewer.ipython.org/3900648/ > > I switched the Basemap projection to 'cyl' because we need to ensure > that Basemap and WMS are using the same projection, right?

Re: [Matplotlib-users] Clipping Contours

2012-10-16 Thread T J
On Tue, Oct 16, 2012 at 2:34 AM, Damon McDougall wrote: > On Tue, Oct 16, 2012 at 8:04 AM, T J wrote: >> I'm interested in clipping the result of plt.contour (and >> plt.contourf) to a patch. However, QuadContourSet does not have a >> set_clip_path() method. Is there a way to do this? >> >> Her

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
On 10/16/12 11:20 AM, Rich Signell wrote: > Jeff, > Yep, that worked! So here is a working example of OWSlib with > Basemap: http://nbviewer.ipython.org/3900648/ > > I switched the Basemap projection to 'cyl' because we need to ensure > that Basemap and WMS are using the same projection, right?

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Rich Signell
Jeff, Yep, that worked! So here is a working example of OWSlib with Basemap: http://nbviewer.ipython.org/3900648/ I switched the Basemap projection to 'cyl' because we need to ensure that Basemap and WMS are using the same projection, right? (and since I had requested EPSG:4326 from WMS, that's

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Benjamin Root
On Tue, Oct 16, 2012 at 11:25 AM, hari jayaram wrote: > Hi > I am a relative newbie to matplotlib. > > I have a python script that handles a dataset that comprises 384 sets of > data. > > At the present moment , I read in a set of data - process it - and the > create a figure using code shown bel

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Damon McDougall
On Tue, Oct 16, 2012 at 5:09 PM, Sterling Smith wrote: > Hari, > > You can give a number to figure(), as in figure(1), and it will reuse figure > 1. Also, you can close figure 1 with pyplot.close(1). > > -Sterling > > On Oct 16, 2012, at 8:25AM, hari jayaram wrote: > >> Hi >> I am a relative new

Re: [Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread Sterling Smith
Hari, You can give a number to figure(), as in figure(1), and it will reuse figure 1. Also, you can close figure 1 with pyplot.close(1). -Sterling On Oct 16, 2012, at 8:25AM, hari jayaram wrote: > Hi > I am a relative newbie to matplotlib. > > I have a python script that handles a dataset t

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Jeff Whitaker
On 10/16/12 8:48 AM, Rich Signell wrote: > Klo & Jeff, > > I tried making a concrete example of using OWSlib with Basemap, but > althought the WMS image looks good, the warpimage does not. > > http://nbviewer.ipython.org/3899690/ > > Do you see where I went wrong? > > Thanks, > Rich Rich: warpima

[Matplotlib-users] close a figure after show , when plotting many figures from script- using matplotlib.pyplot.figure

2012-10-16 Thread hari jayaram
Hi I am a relative newbie to matplotlib. I have a python script that handles a dataset that comprises 384 sets of data. At the present moment , I read in a set of data - process it - and the create a figure using code shown below. I am using windows with the default backend ( I think I set it to

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-16 Thread Rich Signell
Klo & Jeff, I tried making a concrete example of using OWSlib with Basemap, but althought the WMS image looks good, the warpimage does not. http://nbviewer.ipython.org/3899690/ Do you see where I went wrong? Thanks, Rich On Sat, Oct 13, 2012 at 7:26 PM, klo uo wrote: > That's also what that s

Re: [Matplotlib-users] Filling area with a color like in an integral

2012-10-16 Thread Andreas Hilboll
> I have a coordination system with some plotted dots connected with a > line. Now I'd like to fill up the whole space between the line and the > x-axis. It is the same as in a integral calculation: > http://www.definicionabc.com/wp-content/uploads/Integral.png > What I want to do is the same as th

Re: [Matplotlib-users] plot() question

2012-10-16 Thread Phil Elson
To plot a line using pyplot.plot you need an array/list of x coordinates and an array/list of y coordinates. So if you have: data = [[64, 13], [66, 22], [68, 9], [70, 11], [72, 8], [74, 10], [76, 11], [78, 8], [80, 9], [82, 9], [84, 15], [86, 13], [88, 5], [90, 9], [92, 13],

[Matplotlib-users] plot() question

2012-10-16 Thread ran...@0x06.net
Hi, I have a 2d array like: [[64, 13], [66, 22], [68, 9], [70, 11], [72, 8], [74, 10], [76, 11], [78, 8], [80, 9], [82, 9], [84, 15], [86, 13], [88, 5], [90, 9], [92, 13], [94, 12], [96, 7]] I'd like to plot a line/graph that goes through all those coordinates specified in the array. What I do:

Re: [Matplotlib-users] Clipping Contours

2012-10-16 Thread Damon McDougall
On Tue, Oct 16, 2012 at 8:04 AM, T J wrote: > I'm interested in clipping the result of plt.contour (and > plt.contourf) to a patch. However, QuadContourSet does not have a > set_clip_path() method. Is there a way to do this? > > Here is an example plot that I have generated. > >http://imgur.

[Matplotlib-users] Clipping Contours

2012-10-16 Thread T J
I'm interested in clipping the result of plt.contour (and plt.contourf) to a patch. However, QuadContourSet does not have a set_clip_path() method. Is there a way to do this? Here is an example plot that I have generated. http://imgur.com/pybIf For the curious, it plots contours of a functi