[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49621] Custom yticklabels lead to wrongly pla
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #49621] Custom yticklabels lead to wrongly placed annotations when figure is maximized |
Date: |
Wed, 16 Nov 2016 14:31:36 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Update of bug #49621 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Hi,
The axes position is in "normalized" units by default, as are default
annotation objects. Default ticklabels are sufficiently small to not force the
axes extent to be shrink. That is why maximizing does not break the annotation
alignment with default labels.
Now your custom labels are too large to fit in the available space when the
figure has its default size and maximizing the figure thus changes the axes
position:
hf = figure ();
plot (1:10)
printf ("Default axes position: %s", disp (get (gca, "position")))
labels = get (gca, "yticklabel");
labels{1} = "AAAAAAAAAAAA";
set (gca, "yticklabel", labels);
printf ("Modified axes position: %s", disp (get (gca, "position")))
set (gcf, "position", [0 0 600 600])
printf ("Maximized axes position: %s", disp (get (gca, "position")))
The annotations objects position is independent of the axes position so all
you observe is expected.
Closing report as invalid.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49621>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/