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

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


                 Summary: imshow shows incorrect colors when used with
                 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



This is a bug forwarded from Debian

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:


  Message sent via/by Savannah

Reply to: