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

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

[Octave-bug-tracker] [bug #62511] Use subplot() and image() will draw up


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #62511] Use subplot() and image() will draw upside down image
Date: Mon, 23 May 2022 15:30:08 -0400 (EDT)

Update of bug #62511 (project octave):

                  Status:                    None => Invalid                

    _______________________________________________________

Follow-up Comment #1:

This is not specific to axes created using subplot, e.g., AFAICS both of the
images produced by the standalone script below are reversed


figure; 
image (axes (), 'cdata', get (0, "defaultimagecdata"));
figure; 
image (subplot (1,2,1), 'cdata', get (0, "defaultimagecdata"));


This is due to how the `image` function is called. With only property/value
arguments (as here ... well, except the first axes handle argument) the "low
level" behavior is chosen, so that among others the parent axes "ydir"
property is untouched and kept "normal" instead of "reversed" with the "high
level" calling form. See the documentation for image:


... When the only inputs to 'image' are property/value pairs the Low-Level
form is used which creates a new instance of an image object and inserts it in
the current axes.


Marking the status as "invalid", but the documentation could probably be
enhanced. Do you have suggestions?


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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