[Matplotlib-users] colorbar label every level

2008-01-17 Thread James Boyle
I am using the colorbar with a discrete set of intervals, the progression through the levels is not linear. Presently, the colorbar call labels every other level, this looks very nice, but unfortunately in my case one cannot infer the value of the unlabeled levels due to the non-linear

[Matplotlib-users] colorbar and set_under

2008-01-16 Thread Carol Leger
Hi folks, I have encountered a problem using colorbar and set_under with a color map that has only 32 colors. The downward arrow is not filled with the correct color. If 64 colors are used, the arrow is filled correctly. I actually want 8 colors. The test code is essentially

Re: [Matplotlib-users] colorbar and set_under

2008-01-16 Thread Eric Firing
Carol Leger wrote: Hi folks, I have encountered a problem using colorbar and set_under with a color map that has only 32 colors. The downward arrow is not filled with the correct color. If 64 colors are used, the arrow is filled correctly. I actually want 8 colors. The test code is

[Matplotlib-users] colorbar in subplots

2007-12-04 Thread Lars Friedrich
Hello, I would like to have multiple image plots in a figure. Each plot should have its own colorbar. I tried the following: ** a = N.array(((1,2,3), (4,5,6))) P.figure(0) P.subplot(1,2,1) P.imshow(a) P.colorbar() P.subplot(1,2,2) P.imshow(a) P.colorbar()

[Matplotlib-users] colorbar and secondary axis label

2007-11-26 Thread Bryan Fodness
I would like to have my colorbar range from 0 to 1 and add a label (Leaf A) exactly like the Leaf B label on the other side of the y-axis. I have attached my .png -- from pylab import * #pcolor(n, shading='flat', cmap=cm.gray_r)

[Matplotlib-users] Colorbar frame

2007-06-07 Thread Matthew Czesarski
Hi Matplotlib users. I've been fiddling with colorbars a bit today and having a bit of difficulty with the borders. Take, for example, subplots_adjust.py: it makes nice colorbar up the side of the image. But there is a black border, plus numbers, around the colorbar. Is there an easy way of

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Sorry, I realise that my example in my original post doesn't quite make sense. My data range is 17 to 23. I set clim to be clim([15, 25]). I then want the colorbar limits to be the same as clim, 15 to 25. The questions remains the same, which is how to set the range for colorbar. Thanks,

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Eric Firing
Evan, It is still not quite clear to me what you want versus what you are getting. With recent versions of mpl, the colorbar automatically uses the same color boundaries as contourf, if that is what the colorbar is tracking. What version of mpl are you using? (With the most recent mpl I see

Re: [Matplotlib-users] colorbar, setting limits

2007-03-27 Thread Evan Mason
Hi Eric I am using matplotlib-0.90.0. I am making 2 contourf subplots of temperature values which have similar but not equal ranges. In subplot1 the range is 15-25; in subplot2 it is 16 to 24. I use clim, giving it the max and min values obtained from a comparison of subplot1 and 2; i.e., I

[Matplotlib-users] colorbar, ax.get_position after figsize changed by ax.set_aspect

2006-10-05 Thread George Nurser
I have been trying to i. plot a figure using pcolormesh ii. set the proportions of the figure using ax.set_aspect iii. draw colorbar Problem is, colorbar height uses whole of axes box, not just height of figure (whose proportions were set by call of ax.set_aspect(aspect=2.,adjustable='box')). I

Re: [Matplotlib-users] colorbar, ax.get_position after figsize changed by ax.set_aspect

2006-10-05 Thread Eric Firing
George Nurser wrote: I have been trying to i. plot a figure using pcolormesh ii. set the proportions of the figure using ax.set_aspect iii. draw colorbar Problem is, colorbar height uses whole of axes box, not just height of figure (whose proportions were set by call of

[Matplotlib-users] Colorbar

2006-07-10 Thread Mark Johnson
I'm trying to draw a contour plot in a Tk gui with an accompanying colorbar. The gui allows changing which contour is drawn. Some of the contours use a different set of levels, so I'd like to update the colorbar whenever the levels change. I don't need an automatic update -- what I'd like is to

<    1   2