bugGNU Octave - Bugs: bug #29926, imshow shows incorrect colors when...

 
 

bug #29926: imshow shows incorrect colors when used with colormap

Submitter:  Thomas Weber <tweber>
Submitted:  Thu 20 May 2010 09:04:15 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Jussi Judin Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 May 2010 12:16:25 AM UTC, comment #1: 

I checked in a fix (http://hg.savannah.gnu.org/hgweb/octave/rev/bc4eb29e0cb4).  You might also want to look at the function imagesc which is more appropriate for your example matrix.

Rik <rik5>
Group administrator
Thu 20 May 2010 09:04:15 PM UTC, original submission:  

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))

Thomas Weber <tweber>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by tweber (Submitted the item)
  • -email is unavailable- added by tweber
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-05-24 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2010-05-20 tweber Carbon-Copy- Added debian octave group <pkg-octave-devel@lists.alioth.debian.org>

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code