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

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

[Octave-bug-tracker] [bug #65846] multiline title is printed outside ima


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #65846] multiline title is printed outside image when using inner positionconstraint
Date: Sun, 9 Jun 2024 10:57:38 -0400 (EDT)

Follow-up Comment #4, bug #65846 (group octave):

Sorry, the example from comment #3 was untested and "labelfontsizemultiplie"
should obviously be replaced by "titlefontsizemultiplier":


figure(2)
titlemultiplier = get (0, "defaultaxestitlefontsizemultiplier");
alpha = get (0, "screenpixelsperinch")/72;
plot(1,1)
ht = title(sprintf('first line\nsecond line'))
set(gca,'titlefontsizemultiplier', alpha*titlemultiplier, ...
    'positionconstraint','innerposition', ...
    'titlefontsizemultiplier', titlemultiplier)
print('good.png')




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/




reply via email to

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