octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image/imagesc colorbar


From: John W. Eaton
Subject: image/imagesc colorbar
Date: Mon, 26 Nov 2007 11:20:05 -0500

On 20-Nov-2007, David Bateman wrote:

| The imagesc and image functions are incorrectly assuming that the data
| to plot should be scaled to the colormap. In fact the data should be
| left untouched and the colormap adjusted accordingly. This corrects the
| issue of the issue colorbar for images always plotting a range [0:70]
| which is incorrect. With the attached patch and the caxis patch I sent
| this then allows the correct colormaps to be displayed and adjusted for
| images.

| 2007-11-20  David Bateman  <address@hidden>
| 
|       * plot/imagesc.m, plot/image.m: Scale colormap to image and not
|       the reverse. Allow an axes handle to be passed and/or returned.
|       * plot/__go_draw_axse__.m: Autoscale colormap for images.

Please apply this patch.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]