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

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

[Octave-bug-tracker] [bug #64907] Axes position property


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #64907] Axes position property
Date: Sun, 19 Nov 2023 13:57:07 -0500 (EST)

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

                 Summary: Axes position property 
                   Group: GNU Octave
               Submitter: lt1234
               Submitted: Sun 19 Nov 2023 06:57:05 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 8.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 19 Nov 2023 06:57:05 PM UTC By: Liang Tang <lt1234>
>From matlab on-line document, axes 'position' property provides the
specifications of the plot area, i.e., [x0 y0 width height].  See "Control
Axes Layout".  

The following example shows Octave axes position, same definition, may not
update when plot area is changed.  The example shows that the two figures are
the same in dimension but with two different plot areas.  But [x0 y0] are
identical which is not what I had expected.   x0 must be different viewing the
displayed figures/axes, see attached zip files.  

Any user's calculation based on [x0 y0] would be invalid.  

Thanks.  

figure; 
h=plot([0 1], [0 1]); display(get(gca, 'position'));  
hgsave('rectangle.ofig')
axis square; drawnow;  display(get(gca, 'position')); 
hgsave('square.ofig')

>> figure;
>> h=plot([0 1], [0 1]); display(get(gca, 'position'));
   0.1300   0.1100   0.7750   0.8150
>> hgsave('rectangle.ofig')
>> axis square; drawnow;  display(get(gca, 'position'));
   0.1300   0.1100   0.7750   0.8150
>> hgsave('square.ofig')
>>







    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Sun 19 Nov 2023 06:57:05 PM UTC  Name: rectangle_square.zip  Size: 11KiB
  By: lt1234

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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