Font size in a plot

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello,

 

I tried to adjust the font size of text inside a figure using a similar command from MATLAB, but it didn't work.

text(point11(1),point11(2)+0.2,'point11','FontSize',10)

 

Is FontSize property not available in text function? Also, could it be possible to remove the lines from the text in a plot?

 

Kind Regards

Berker

Tagged:

Answers

  • RoKet
    RoKet
    Altair Employee
    edited May 2018

    Hi Berker,

    You can set the fontsize using a handle of the text:

     handle = text(point11(1), point11(2)+0.2,'point11'); set(handle,'fontsize',20);

    A full list of properties like fontsize you can find in help for 'set'.

    Ronald