bugGNU Octave - Bugs: bug #58470, Plotyy axis labels out of canvas

 
 

bug #58470: Plotyy axis labels out of canvas

Submitter:  Tunc <tunc>
Submitted:  Sun 31 May 2020 04:24:51 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 01 Jun 2020 06:43:22 PM UTC, comment #3: 

I reviewed the patch and checked it it on the stable branch here: https://hg.savannah.gnu.org/hgweb/octave/rev/38ebf4885e0f.

The problem manifests on the stable branch, and this seemed like a small enough fix that it was unlikely to cause trouble.  I did have to rename "positionconstraint" to "activepositionproperty" for the stable branch.

When I merge stable to default (https://hg.savannah.gnu.org/hgweb/octave/rev/f3200b8cff19) I renamed the property back to "positionconstraint".

plotyy() always has strange positioning issues.  I'll file another bug report about a different issue I see with demo #1 of plotyy.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Sun 31 May 2020 11:02:05 PM UTC, comment #2: 

The attached patch fixes the issue for me.


(file #49192)

Pantxo Diribarne <pantxo>
Group Member
Sun 31 May 2020 05:27:02 PM UTC, comment #1: 

Confirmed.

The problem seems to be that the "position" property is not be automatically changed to an accurate size.  In the mean time, if you must create figures for publication you can continue to use plotyy, and just adjust the size manually.

For example, adding this produces an acceptable looking plot when printed.


pos = get (gca, 'position')
pos(3) -= .12;  # reduce width
pos(1) += .04;  # shift x-offset
pos(4) -= .08;  # reduce height
pos(2) += .07;  # shift y-offset
set (gca, 'position', pos);



Rik <rik5>
Group administrator
Sun 31 May 2020 04:24:51 PM UTC, original submission:  

Hi,

If I execute the attached script, the axis labels are not placed adjacent to the axes properly unless the font size is not very small. y2 axis label and x-axis label are out out of the visible area.

The situation is the case both for the plot window as well as the rendered output image.

Thanks for your time.

Tunc <tunc>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #49192:  bug58470.patch added by pantxo (1KiB - text/x-patch)
file #49189:  out.png added by tunc (35KiB - image/png)
file #49190:  example.m added by tunc (159B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by tunc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-06-01 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
        Releasedev 6.0.90
    2020-06-01 pantxo StatusConfirmed Patch Submitted
    2020-05-31 pantxo Attached File- Added bug58470.patch, #49192
    2020-05-31 rik5 CategoryPlotting Plotting with OpenGL
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release5.2.0 dev
    2020-05-31 tunc Attached File- Added out.png, #49189
        Attached File- Added example.m, #49190

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code