🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Font size in a plot

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "RoKet"
    Altair Employee
    Updated by RoKet

    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