On 3/31/12 5:48 AM, David Craig wrote:
Hi, I previously installed basemap by using the yum command. This
installed version 0.99.4. I want to install the latest version so I
can use shaded relief etc. This may be more of a linux problem but as
I am more familiar with python than linux I thought
On 03/29/2012 06:29 AM, Chao YUE wrote:
> Dear all,
>
> I make a contourf plot but I think the colorbar is too wide. Can I make
> it narrower (slimmer)?
>
Yes, you can use the aspect kwarg. The default is 20. Try
cbar = plt.colorbar(aspect=40)
http://matplotlib.sourceforge.net/api/figure_api.h
On 03/30/2012 01:23 PM, Emmanuel Mayssat wrote:
> Hello all,
>
> I can create a figure
> and get the corresponding axes/plots
>
> for examples:
> 1/
> fig = Figure(figsize=(width, height), dpi=dpi)
> ax = gif.add_subplot(111)
>
> 2/
> fig, ax = plt.subplots()
>
> but I would like to create my plot
On Sun, Apr 1, 2012 at 4:23 PM, Skipper Seabold wrote:
> Hi,
>
> I wrote an abline_plot function, and I'm curious if what I'm doing is the
> best way to go about this. I tried unsuccessfully to get the transforms to
> do what I want, but I'm not sure if it's possible. What I came up with is
> to
Hi,
I wrote an abline_plot function, and I'm curious if what I'm doing is the
best way to go about this. I tried unsuccessfully to get the transforms to
do what I want, but I'm not sure if it's possible. What I came up with is
to use callbacks to draw an "infinite" line. It works, but it seems a b
On 03/31/2012 07:26 AM, Marston wrote:
> Hi, I'm trying to create a plot, with subplots where each row of x plots
> have a common colorbar beneath it. Only the the top row will have
> titles. I've tried creating a function to do this but I only achieve
> partial success. Here is an image created in
Thanks Tony, I think this will work!
Cheers,
Joe
On Mar 31, 2012, at 11:33 AM, Tony Yu wrote:
>
>
> On Fri, Mar 30, 2012 at 12:25 PM, eoj wrote:
>
> Basically the problem is like this. I have a relatively expensive (time wise)
> figure to create, specifically a map with lots of detail in it
Hi, I am trying to use pcolor to visualise three variables. For example if
I have a value for z at x and a value for z at y something like [x1, x2,
x3] = [z1, z2, z3] and [y1, y2, y3] = [z2, z1, z3]. Then I use meshgrid to
create the grid for x and y,
X, Y = meshgrid(x, y)
the result is two array's
i modified the code as follow :
def bar_plot(data, Yval, datamin=None, datamax=None):
""" doc """
x = data[0]
y = data[1]
# reduce dataset based on min max date
if datamin != datamax != None :
x = data[0][np.where((data[0]>=datamin) & (data[0]<=datamax))[0]]
y