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

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

[Octave-bug-tracker] [bug #49775] Font characteristics of title via comm


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #49775] Font characteristics of title via command and via set do not match
Date: Tue, 6 Dec 2016 08:59:25 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #2, bug #49775 (project octave):

Oh, this may not be a bug then.  The title.m file does a set, but uses some
extra parameters:


             "fontsize", get (hax, "TitleFontSizeMultiplier") *
                         get (hax, "fontsize"),
             "fontweight", get (hax, "titlefontweight"),


TitleFontSizeMultiplier and titlefontweight aren't something that set(gca,
'title', 'Nice Plot') can use in a generic sense.

I see that title() has an option where the axis handle can be passed in as the
first argument.  That's the proper way of controlling this, e.g.:

title(gca, 'hello', 'fontsize', 8)

The set(gca, 'title', '123') is more for directly tweaking the string
parameters.

If there is one change to make, it might be that the default title settings
for fontsize and fontweight are those listed above to match what the title
does.  But from there on, set(gca, 'title', '123') controls things.

What is a little odd is that the axis title is a handle, yet one is able to
do

set(gca, 'title', 'world');

when it should maybe be

set(get(gca, 'title'), 'string', 'world');

Guess it's a shortcut, in a way.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49775>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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