[Matplotlib-users] rc parameters for colorbar?

2012-12-11 Thread Chao YUE
Dear all, I checked and it seems that we don't have rc Parameters for colorbar? could it be desirable? Chao -- *** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ

[Matplotlib-users] plot_surface does not work

2012-12-11 Thread Degang Wu
Hi, My OS is Mac OS X Lion, and the version of matplotlib is 1.2.0 from macport. Now I have an 2d array a=array([[ 0.,0.,0.,0., 0.,0.,0.,0., 0.,0.,0.,

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 8:25 AM, Degang Wu wrote: > Hi, > > My OS is Mac OS X Lion, and the version of matplotlib is 1.2.0 from > macport. > > Now I have an 2d array > > a=array([[ 0.,0.,0.,0., >0.,0.,0.,

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Ethan Gutmann
> This is because the default rstride and cstride arguments is 10, IIRC. Since > your array is only 12x12, the surface plotting is barely plotting anything. > Try calling: > > ax.plot_surface(x, y, a, rstride=1, cstride=1) You know, this has tripped me up a few times too. I don't use plot_s

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 12:17 PM, Ethan Gutmann wrote: > > This is because the default rstride and cstride arguments is 10, IIRC. > Since your array is only 12x12, the surface plotting is barely plotting > anything. Try calling: > > > > ax.plot_surface(x, y, a, rstride=1, cstride=1) > > > You kn

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Benjamin Root
On Tue, Dec 11, 2012 at 2:08 PM, Chloe Lewis wrote: > Would it be workable for the default to be proportional to the size of the > array passed in? (suggested only because I do that myself, when deciding > how coarse an investigative plot I can get away with.) > > &C > > That is pretty much what

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Chloe Lewis
Would it be workable for the default to be proportional to the size of the array passed in? (suggested only because I do that myself, when deciding how coarse an investigative plot I can get away with.) &C On Dec 11, 2012, at 9:28 AM, Benjamin Root wrote: > > > On Tue, Dec 11, 2012 at 12:1

[Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Timothy Duly
Hi, I'm running into a problem with overlaying a scatter plot on a polygon that is on a Basemap. The polygon covers up the scatter plot created by the basemap. To show the issue, the simple example below and broken down into three steps: 1) creating the map, 2) adding the red polygon, and 3) add

Re: [Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Eric Firing
On 2012/12/11 12:16 PM, Timothy Duly wrote: > Hi, > > I'm running into a problem with overlaying a scatter plot on a polygon > that is on a Basemap. The polygon covers up the scatter plot created by > the basemap. To show the issue, the simple example below and broken > down into three steps: 1)

Re: [Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Timothy Duly
Thanks Eric, this did the trick. I did not know such a thing existed. Why "4"? Tim On Tue, Dec 11, 2012 at 4:35 PM, Eric Firing wrote: > On 2012/12/11 12:16 PM, Timothy Duly wrote: > > Hi, > > > > I'm running into a problem with overlaying a scatter plot on a polygon > > that is on a Basemap

Re: [Matplotlib-users] plot_surface does not work

2012-12-11 Thread Damon McDougall
On Tue, Dec 11, 2012 at 1:16 PM, Benjamin Root wrote: > > > On Tue, Dec 11, 2012 at 2:08 PM, Chloe Lewis wrote: >> >> Would it be workable for the default to be proportional to the size of the >> array passed in? (suggested only because I do that myself, when deciding how >> coarse an investigati

Re: [Matplotlib-users] Basemap: adding a polygon covers up scatter plot on map

2012-12-11 Thread Eric Firing
On 2012/12/11 1:24 PM, Timothy Duly wrote: > Thanks Eric, this did the trick. I did not know such a thing existed. > Why "4"? I don't remember exactly what the defaults are for different types of artist, and didn't want to take the time to look, but I think they are all less than 4. So I jus