Can the font size of gscatter x-axis and y-axis labels be changed?

조회 수: 11 (최근 30일)
Brad . 2017년 5월 16일
답변: Star Strider . 2017년 5월 16일
I'm creating several group scatter plots where the a-axis and y-axis labels vary from plot to plot. The parameters xnam and ynam specify the names to use for the x-axis and y-axis labels.
Are the font sizes of these parameters hard coded to specific values? Or can they be varied?
Thank you.

채택된 답변

Star Strider
Star Strider 2017년 5월 16일
You can vary them with the 'FontSize' p[roperty.
x = rand(1,100);
y = rand(1,100);
scatter(x, y)
xlabel('X Value', 'FontSize',20);
ylabel('Y Value', 'FontSize',30)

추가 답변 (0개)


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


Community Treasure Hunt

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

Start Hunting!

Translated by