[Pkg-octave-devel] [bug #29926] imshow shows incorrect colors when used with colormap

Thomas Weber INVALID.NOREPLY at gnu.org
Thu May 20 21:04:15 UTC 2010


URL:
  <http://savannah.gnu.org/bugs/?29926>

                 Summary: imshow shows incorrect colors when used with
colormap
                 Project: GNU Octave
            Submitted by: tweber
            Submitted on: Thu 20 May 2010 09:04:15 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name:  Jussi Judin
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

This is a bug forwarded from Debian
http://bugs.debian.org/581998

It happens with both 3.2.4 and Mercurial tip as of 10640:5c594472f75e

octave:1> imshow([0 0.33; 0.67 1]);
Shows an image with different shades of gray

octave:2> colormap(hot(10))
Only the upper left corner is black, everything else is white.

octave:3> colorbar
Correctly shows the colorbar, but the image stays wrong.

If changing the calls to colormap and colorbar, it works correctly:

octave:5> imshow([0 0.33; 0.67 1]);
octave:6> colorbar
octave:7> colormap(hot(10))





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29926>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




More information about the Pkg-octave-devel mailing list