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

364 Ansichten (letzte 30 Tage)
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 Kommentare
suchismita
suchismita am 6 Jun. 2016
Bearbeitet: suchismita am 6 Jun. 2016
R2013a.... Windows 7....
i m attaching the result which i got....
i want to increase font size for both

Melden Sie sich an, um zu kommentieren.

Antworten (2)

KSSV
KSSV am 6 Jun. 2016
a = get(gca,'XTickLabel');
set(gca,'XTickLabel',a,'FontName','Times','fontsize',18)
  3 Kommentare
Amin Mohammed
Amin Mohammed am 7 Apr. 2020
It worked for me actually, even for both axes, I am using Matlab2014a.

Melden Sie sich an, um zu kommentieren.


KSSV
KSSV am 6 Jun. 2016
Bearbeitet: KSSV am 6 Jun. 2016
It is changing through gui of plot. Go to edit plot and click on axes, change font. But by code need to sort.

Community Treasure Hunt

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

Start Hunting!

Translated by