필터 지우기
필터 지우기

How can i change the font size of XTick and YTick (x axis and y axis) in histogram of a image?

조회 수: 383 (최근 30일)
I have a image as lena.jpg, from which i was trying to obtain hist graph.
x=imread('lena.jpg');
imhist(x);
set(gca,'FontSize',15);
with this code i am able to change the font size of YTick only but i want to change font size of both. how can i do that????
  댓글 수: 2
suchismita
suchismita 2016년 6월 6일
편집: suchismita 2016년 6월 6일
R2013a.... Windows 7....
i m attaching the result which i got....
i want to increase font size for both

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

답변 (2개)

KSSV
KSSV 2016년 6월 6일
a = get(gca,'XTickLabel');
set(gca,'XTickLabel',a,'FontName','Times','fontsize',18)
  댓글 수: 3
Amin Mohammed
Amin Mohammed 2020년 4월 7일
It worked for me actually, even for both axes, I am using Matlab2014a.

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


KSSV
KSSV 2016년 6월 6일
편집: KSSV 2016년 6월 6일
It is changing through gui of plot. Go to edit plot and click on axes, change font. But by code need to sort.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by