Why are some characters chopped off on the bottom in plots?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Below is an example of text from a legend. The top line is chopped but the lower line is not.
Here is some code that can generate the ugliness for you (unless I am mistaken). Just look at the Y-axis text.
figure;
plot([0,1],[0,1])
set(gca,'fontsize',18)
If you increase the fontsize to 19 or larger points then the issue seems to go away. What is going on?
2 comentarios
Walter Roberson
el 9 de En. de 2020
Are you using... Ummm, let me think... R2015b?? On Linux??
There was a release which cut off text at the boundary on Linux systems. The easiest fix was to nudge the YLim to go down a bit further.
There was also an old release that the problem happened on Windows, and the solution had to do with changing the figure Renderer property.
Respuestas (1)
Hiro Yoshino
el 9 de En. de 2020
figure;
plot([0,1],[0,1],[0,1],[0,1])
set(gca,'fontsize',18)
legend('nissio', 'pop.');
Mine did work well with R2019b.
1 comentario
Ver también
Categorías
Más información sobre Annotations 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!