[Matplotlib-users] hover events for fill_between regions

2011-11-17 Thread Ben Elliston
Hi. I have a plot with numerous time series plotted using pyplot.plot. Between these time series, I fill the regions using pyplot.fill_between. I would like to be able to provide information when users hover over different filled regions. Is there a way to catch mouse motion events for the fille

[Matplotlib-users] continous colour bar

2011-07-11 Thread Ben Elliston
Hi. I have a set of data with a range of (say) 0 to 100. Is it possible to get matplotlib to use the same colour for 0 and 100, so that the colours "meet" at the ends of the color bar? One workaround is to just manipulate the data (eg. using abs (x-50)), but I would rather not, if possible. Tha

Re: [Matplotlib-users] setting x/yrange on a pcolor plot

2010-12-15 Thread Ben Elliston
On Wed, Dec 15, 2010 at 08:02:42PM -0600, Benjamin Root wrote: > Assuming you are doing a pcolor on some 2-D numpy array called 'z': > > ax.set_xlim(xmax=z.shape[1]) > ax.set_ylim(ymax=z.shape[0]) Thanks. I also found (after a bit of digging) that I could just use: axis ('off') Cheers, Ben

[Matplotlib-users] setting x/yrange on a pcolor plot

2010-12-15 Thread Ben Elliston
I am trying to plot an 840 x 680 element matrix using pcolor. matplotlib has decided that the xrange should be 900 and the yrange 700. Is there a way to tell matplotlib to always use x/yranges that always match the dimensions of the matrix? Thanks, Ben ---