![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/507700/image.jpeg)
I want to resize font of the power of ten of plot.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
poni_poni
el 2 de Feb. de 2021
Comentada: poni_poni
el 5 de Feb. de 2021
Hello ... Thank you for everything.
I would like to reduce the font size of the graph, 10^7, because the title is too long and it gets in the way of the title.
I know that I can change the font size of the title and the names of the axes.
I know that I can change the font size of the title and the name of the axis, and I know that I can change the font size of the numbers on the axis.
However, I don't know how to reduce the font size of the powers only.
I do not want to change the units of the vertical axis if possible.
Is there any good way to do this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/507098/image.png)
0 comentarios
Respuesta aceptada
dpb
el 2 de Feb. de 2021
Editada: dpb
el 2 de Feb. de 2021
hAx=gca;
hYAx=hAx.YAxis; % handle to Y axes numeric ruler object
hYExpText=hYAx.NodeChildren(1); % handle to the Y axes exponent text object
hYExpText.FontSize=8; % set that object fontsize alone
Thanks to Yair Altman's FEX submission <getundoc: Get-undocumented-object-properties>
This would seem to be worth an enhancement request to add to the visibile NumericRuler object properties.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/507700/image.jpeg)
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!