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

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

[Octave-bug-tracker] [bug #55019] new sgtitle function


From: Marshall
Subject: [Octave-bug-tracker] [bug #55019] new sgtitle function
Date: Fri, 30 Nov 2018 18:21:46 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0

Follow-up Comment #6, bug #55019 (project octave):

Comment #5 gives a decent work around, though I agree that it is not perfect.
It took me a bit to figure out that text position attached to a figure is from
-1 to 1 in x and y instead of 0 to 1, as is used to position axes (at least
before an axis is placed). 


ht = text(0,0.98,'sgtitle
text','parent',gcf,'horizontalalignment','center','verticalalignment','top');

The above places it at the top of a blank figure.

However, if I place this text before a subplot (e.g. subplot(5,5,3)), then the
text moves position as soon as the subplot is created: relative to the axes
position now (in data units of the placed axis). Text placed after an axes is
created, then even with the figure as parent it is positioned relative to the
data units of the last axes.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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