How to hide the units label on an axis

Hello,
I'm trying to hide the units label on an axis-name.
By units label, I mean the "(deg)" on this picture. I need a plot in a different language than English, so the units have a different name.
Ata

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 20 de Mayo de 2013
Editada: Sean de Wolski el 20 de Mayo de 2013
How are you generating the figure?
Would the following take care of it?
ylabel('Phase')
More per clarification. There is probably an option for bodeplot to turn this off but here is a workaround that just removes it:
hFig = figure;
sys = rss(5);
h = bodeplot(sys);
labels = findall(hFig,'Type','Text');
label = labels(strncmp(get(labels,'String'),'Phase',5));
set(label,'String',regexprep(get(label,'String'),'(\(\w*))',''));

3 comentarios

ata
ata el 20 de Mayo de 2013
The figure is a Bode-plot, I use the bode-command therefore.
With the ylabel-command, only the name changes, the units are still visible.
Sean de Wolski
Sean de Wolski el 20 de Mayo de 2013
see More
ata
ata el 20 de Mayo de 2013
This way, it works fine. Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

ata
el 20 de Mayo de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by