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
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
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
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()
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)
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
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,
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
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
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
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
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
101 - 112 of 112 matches
Mail list logo