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

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

[Octave-bug-tracker] [bug #65404] 'clim' property is updated even when d


From: Rik
Subject: [Octave-bug-tracker] [bug #65404] 'clim' property is updated even when data is of type TrueColor
Date: Sat, 2 Mar 2024 17:57:02 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65404>

                 Summary: 'clim' property is updated even when data is of type
TrueColor
                   Group: GNU Octave
               Submitter: rik5
               Submitted: Sat 02 Mar 2024 02:57:02 PM PST
                Category: Plotting
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 02 Mar 2024 02:57:02 PM PST By: Rik <rik5>
According to Matlab documentation, "The clim function only affects graphics
objects that have the CDataMapping property set to "scaled". It does not
affect graphics objects that use truecolor or have the CDataMapping set to
"direct"."

For Octave, if 'cdatamapping' is set to direct (such as produced by image())
the 'clim' property is not updated.  However, for TrueColor objects (RGB with
3-D Matrix), the 'clim' property is updated.  The data is displayed correctly,
it is just a small artifact that the clim property is modified.

Code to reproduce:


figure;
hax = gca;
get (hax, 'clim')
him = imagesc(uint8(randi([1 64], 16, 16, 3)));
get (him, 'cdatamapping')
get (hax, 'clim')


'clim' is [1, 64] instead of default of [0, 1]







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65404>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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