[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55379] Legend "northwestoutside" shrinks axes
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55379] Legend "northwestoutside" shrinks axes more than is required |
Date: |
Fri, 4 Jan 2019 11:34:02 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #55379 (project octave):
Item Group: None => Feature Request
Release: 4.2.2 => dev
Summary: Legend "northwestoutside" reserves a large
whitespace on the east coast! => Legend "northwestoutside" shrinks axes more
than is required
_______________________________________________________
Follow-up Comment #2:
Confirmed. The example can be simplified by using just a single plot. See
the example transcript below.
octave:6> plot ([1, 2])
octave:7> get (gca, 'position')
ans =
0.13000 0.11000 0.77500 0.81500
octave:8> legend ("foo", "location", "northwestoutside")
octave:9> get (gca, 'position')
ans =
0.14131 0.11000 0.68968 0.81500
octave:10> .775 - .14131
ans = 0.63369
octave:11> .775 - .13
ans = 0.64500
octave:12> .68968 - .14131
ans = 0.54837
As you can see, legend is not only shifting the axes position to the right to
make room for the label "foo", but it is shrinking the width of the axes by
more than is required. I can restore the full size by expanding the width
field of the axes "position" property back to what it should be.
octave:13> pos = get (gca, 'position')
pos =
0.14131 0.11000 0.68968 0.81500
octave:14> pos(3) = (0.775 - (.14131 - 0.13))
pos =
0.14131 0.11000 0.76369 0.81500
octave:15> set (gca, 'position', pos)
I'll check to see if this is an easy fix, but it might have to wait until the
first bug fix release for the 5.0 branch.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55379>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/