octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48664] imshow for binary data: colormap not h


From: anonymous
Subject: [Octave-bug-tracker] [bug #48664] imshow for binary data: colormap not handled correctly?
Date: Sun, 31 Jul 2016 12:24:54 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

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

                 Summary: imshow for binary data: colormap not handled
correctly?
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 31 Jul 2016 12:24:51 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

for binary data imshow will by default produce a black and white plot. The
colors can be changed by specifying a colormap:


a = rand(10,10);
imshow(a > 0.5, [1,0,0;0,1,0]);
pause


with octave this will result in an all red plot. Matlab gives a red/green
plot. (See attachment)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 31 Jul 2016 12:24:51 PM UTC  Name: imshow_R2015b.png  Size: 2kB  
By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38056>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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