Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Jeff Whitaker
On 2/9/12 10:49 AM, Jeff Whitaker wrote: > On 2/9/12 9:05 AM, Andreas H. wrote: >> Hi, >> >> I'm trying to use pcolor on a masked array. I would like masked elements >> to show up in a special color. I have written some code, but it does not >> seem to work: >> >> I would appreciate any help :) >>

Re: [Matplotlib-users] Switch graphs

2012-02-09 Thread phils
Paul Ivanov wrote: > > Hi Phil, > > phils, on 2012-02-04 07:41, wrote: >> Newbie to using matplotlib > > welcome to the party :) > >> Is it possible to use wx and have a window with say 2 buttons on where >> when >> clicking on either button a different graph will appear using a different >

Re: [Matplotlib-users] Switch graphs

2012-02-09 Thread phils
Paul Ivanov wrote: > > Hi Phil, > > phils, on 2012-02-04 07:41, wrote: >> Newbie to using matplotlib > > welcome to the party :) > >> Is it possible to use wx and have a window with say 2 buttons on where >> when >> clicking on either button a different graph will appear using a different >

Re: [Matplotlib-users] Switch graphs

2012-02-09 Thread phils
Paul Ivanov wrote: > > Hi Phil, > > phils, on 2012-02-04 07:41, wrote: >> Newbie to using matplotlib > > welcome to the party :) > >> Is it possible to use wx and have a window with say 2 buttons on where >> when >> clicking on either button a different graph will appear using a different >

[Matplotlib-users] 2 possible bugs with make_axes_area_auto_adjustable

2012-02-09 Thread C M
Jae-Joon's code, make_axes_area_auto_adjustable has been a great help to dynamically resizing my plots' axes area--such an improvement. But there are two bugs I've noticed that I wonder if has been identified/fixed yet: 1) When I point-pick on the plot, the plot area still "jumps" (expands vertic

Re: [Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Jeff Whitaker
On 2/9/12 9:05 AM, Andreas H. wrote: > Hi, > > I'm trying to use pcolor on a masked array. I would like masked elements > to show up in a special color. I have written some code, but it does not > seem to work: > > I would appreciate any help :) > > Cheers, > Andreas. > > ---8<--- > > import ma

[Matplotlib-users] cmap.set_bad() not showing any effect with pcolor()

2012-02-09 Thread Andreas H.
Hi, I'm trying to use pcolor on a masked array. I would like masked elements to show up in a special color. I have written some code, but it does not seem to work: I would appreciate any help :) Cheers, Andreas. ---8<--- import matplotlib as mpl import matplotlib.pyplot as plt from numpy

[Matplotlib-users] x-axis ticks and labels

2012-02-09 Thread David Craig
Hi, I am trying to relabel the x-axis on a plot. I want it to have 10 evenly spaced labels ranging from 274 at zero to 283 at one increment short of the axis. My code is as follows: im.axes.xaxis.set_major_locator(py.MaxNLocator(10)) im.axes.xaxis.set_ticklabels(range(274,284)) My und

Re: [Matplotlib-users] Missing Segments in Output of imshow()

2012-02-09 Thread Jerzy Karczmarczuk
Christopher Ellison : > Taking the image size to (30,30) made all the segments appear, but their > thickness was still not uniform. Using some sort of smoothing helped, > but it still not displaying what the matrix was specified as: a set of > blocks, somewhat resembling a line, all of which are t