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

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

[Octave-bug-tracker] [bug #50217] Setting default graphics properties fo


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #50217] Setting default graphics properties for text has no effect
Date: Fri, 3 Feb 2017 12:28:07 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Update of bug #50217 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Hi,

Setting default properties for text objects does work for "regular" text
objects:


set(0,'defaulttextfontsize',14)
set(0,'defaulttextfontname','Arial')
plot (1:10);
ht = text ();
get (ht, {"fontsize", "fontname"})
#-> ans = {14, "arial"}


Axes labels are handled differently: their properties are copied from their
corresponding axes font* properties.
I checked in ML and it behaves the same way:


set(0,'defaulttextfontsize',14)
set(0,'defaulttextfontname','Arial')
plot (1:10)
xlabel('This is a test for a LABEL');
title('This is a test title!');
lab = get (gca, 'xlabel');
get (lab, 'FontSize')
%-> 11


So something like this will achieve what you want:


set(0,'defaultaxesfontsize',13)
set(0,'defaultaxesfontname','Arial')


This will set ticklabels size=13 and x(yz)labels size=14.3. The ratio between
those(here 1.1) is given by the "label(title)fontsizemultiplier" property.

Closing report as invalid.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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