필터 지우기
필터 지우기

Font size problem in 2-D plots

조회 수: 2 (최근 30일)
ulas im
ulas im 2013년 5월 16일
Dear users
i am using R2012b in a Linux machine and i have problems changing the font size of texts in plots (title, axis, labels etc...). Whatever size i define, the default size is being plotted. A part of the code is given below where i define those:
... xlabel('Months','FontSize',20); unit=unitsSurf(spc,:); unit=strcat(unit); ylabel([nameObs,' (',unit,')'],'FontSize',20); ....
anyone has faced this problem before?
thanks in advance

답변 (2개)

José-Luis
José-Luis 2013년 5월 16일
title(['\fontsize{20} Look Big' char(10) ...
'\fontsize{10} Look small' char(10) ...
'\fontsize{20} Mixed_{\fontsize{8} underscore}'],'interpreter','tex')
A variant thereof should work.
  댓글 수: 1
ulas im
ulas im 2013년 5월 16일
Hello
i am doing the following but still get the same fontsize on the x label:
xlabel(['\fontsize{20} Days'],'interpreter','tex');
am i doing something wrong?
thank you

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


Daniel Shub
Daniel Shub 2013년 5월 16일
  댓글 수: 2
ulas im
ulas im 2013년 5월 17일
Hello
Unfortunately it does not help me. Even the font does not change (tried Arial, Dejavu Sans, and a bunch of others). I am running matlab on a cluster of centos 6.3. Where should i define these? before starting plotting? is it possible if you can write me a dummy code?
thank you
Daniel Shub
Daniel Shub 2013년 5월 17일
Have you read the linked question and answers? There is no MATLAB code that will fix your problem. There is most likely something wrong with your Linux install. MATLAB needs fonts from the X11 packages in order to display the font and change the font size. It is not clear to me if the packages need to be on the X server or X client and how they interact. Are you working directly on the cluster or are you using ssh with X forwarding or some sort of X for MS windows?

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

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by