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

 
 

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

Submitted by:  Thomas Weber <tweber>
Submitted on:  Thu 20 May 2010 09:04:15 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name:  Jussi JudinOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 May 2010 12:16:25 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 20 May 2010 09:04:15 PM UTCtweberCarbon-Copy-=>Added debian octave group

    Back to the top


    Powered by Savane 3.1-cleanup1