bugGNU Octave - Bugs: bug #57743, property position returns wrong...

 
 

bug #57743: property position returns wrong value, printing is wrong

Submitted by:  vasiliy <vasiliy22>
Submitted on:  Tue 04 Feb 2020 09:29:29 PM UTC  
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  5.1.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Tue 04 Feb 2020 09:29:29 PM UTC, original submission:  

If xlabel and/or ylabel are not empty, the position property of axis is wrong. So it turns out impossible to recalculate plot coorinates into normalized figure coordinates.

Example:

>> plot([0 0], [1 1]);
>> get(gca, "position")

ans =

   0.13000   0.11000   0.77500   0.81500

>> xlabel("x");
>> ylabel("y");
>> get(gca, "position")

ans =

   0.13000   0.11000   0.77500   0.81500

>>set(gcf, "papersize", [4 4], "paperposition", [0 0 4 4]);
>>print("figure3.tex", "-dpdflatexstandalone");


the plot window looks good, the bug can be seen after printing

the result is the same, despite the plot window was shrinked.

vasiliy <vasiliy22>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #48348:  figure3.pdf added by vasiliy22 (47KiB - application/pdf)
file #48349:  figure3-inc.pdf added by vasiliy22 (14KiB - application/pdf)
file #48350:  figure3.tex added by vasiliy22 (2KiB - text/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vasiliy22 (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-04 vasiliy22 Attached File- => Added figure3.pdf, #48348
        Attached File- => Added figure3-inc.pdf, #48349
        Attached File- => Added figure3.tex, #48350

    Back to the top


    Powered by Savane 3.5