![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227742/image.png)
How to prevent line break after blank space when plotting text using annotation textbox?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Conrado Neto
le 4 Juil 2019
Modifié(e) : KALYAN ACHARJYA
le 5 Juil 2019
if I try to plot this:
x = 'The blank spaces break line';
figure(1)
annotation('textbox',[0.178 0.425 0 0],'String',x);
At every blank space the text breaks to a new line. How to prevent that?
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 5 Juil 2019
Modifié(e) : KALYAN ACHARJYA
le 5 Juil 2019
x = 'The blank spaces break line';
figure(1)
annotation('textbox',[0.1 0.1 .35 .1],'String',x);
%....................^^ Dimension
I have changed it, its now working, more detail dimention example, check here
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227742/image.png)
Hope it helps!
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Report Generator dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!