Changing Linewidth and Font size in thd(x)

조회 수: 8 (최근 30일)
Adrian Alexander
Adrian Alexander 2021년 3월 18일
댓글: Adrian Alexander 2021년 3월 19일
Hi,
I want to make fontsize and linewidth of thd(x) bigger , so that it looks better in word . i dont know how to get control over the build in plot anotation the figer and the line properties.
thanks for ur help in advance

채택된 답변

Michael Soskind
Michael Soskind 2021년 3월 18일
편집: Michael Soskind 2021년 3월 18일
Hi Adrian,
The fontsize is relatively straightforward:
ax = gca;
ax.FontSize = 24;
will change the fontsize of the title, legend, and both x and y axes. If you want more customizability, you can change each individually by using the title, legend, xlabel, and ylabel commands with the FontSize option.
The linewidth should be adjusted by changing the default linewidth with the set function:
set(0,'defaultLineLineWidth',lw); % set the default line width to lw
This will change the linewidth you see in your figure. There are most likely some other good ways to do this, but these are some of the faster ways that I like to use in my figures.
Hope that helps,
Michael
  댓글 수: 1
Adrian Alexander
Adrian Alexander 2021년 3월 19일
hey ho nice it works fine. i come from octave and i am quite surprised that ax = gca gives u controll over x y title and legend :D

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by