setting axis font size on scatter plot

Hi, I'm making a scatter plot as follows:
MATLAB CODE
sc = scatter(x1ValuesToPlot, x2ValuesToPlot, 4, 'filled');
%Final plot UI.
title(graphTitle, 'FontSize', 7);
set(gcf,'Color',[1 1 1]);
As you can see I'm setting the title font size. How would I set the axis font size please? All the best, Tom.

 Accepted Answer

set(gca, 'FontSize', 7)

1 Comment

Works great, thanks alot. I'm sure I'd tried that but it works perfectly.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!