Is this distance variable?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Christian Vering
el 13 de En. de 2016
Comentada: Star Strider
el 13 de En. de 2016
Dear Community,
in the picture you can see a distance. Is it possible to enlarge this distance, so that the graphic looks better?
Thanks for help and have a nice evening, Christian
0 comentarios
Respuesta aceptada
Mike Garrity
el 13 de En. de 2016
Yes and no.
The YLabel property of the axes is a handle to a text object, and you can set the Position property of that to move it around, but that can get a bit messy if the axes changes because you're both trying to control the same position.
The traditional trick here is to add an extra line to increase the gap:
ylabel({'My Label';' '})
You can fine-tune that by using tex interpreter (or latex) commands:
ylabel({'My Label';'\fontsize{24} '})
Más respuestas (2)
Adam
el 13 de En. de 2016
Editada: Adam
el 13 de En. de 2016
hYLabel = ylabel( 'Some y label' );
then you can edit the ' Position' property of your hYLabel to move it horizontally or vertically. You may have to move the axes as well though as your label may end up off the screen otherwise.
e.g
hYLabel.Position(2) = -15;
Star Strider
el 13 de En. de 2016
Also, if you want to use LaTeX syntax, you need to specify the LaTeX interpreter:
xlabel('$\rm{time}~[s]$', 'Interpreter','latex')
2 comentarios
Ver también
Categorías
Más información sobre Graphics Object Properties 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!