How to set up a plot with labels but no Y-axis tick marks

5 visualizaciones (últimos 30 días)
How to set up a plot with labels but no Y-axis tick marks

Respuesta aceptada

Star Strider
Star Strider el 30 de Nov. de 2023
Perhaps this —
figure
boxchart(rand(10))
yt = yticks;
yline(yticks, '-k', 'Color',[1 1 1]*0.25)
Ax = gca;
Ax.YAxis.Visible = 0;
text(zeros(size(yt))-0.01*diff(double(xlim)), yt, compose('%g',yt), 'Horiz','right', 'Vert','middle')
.
  2 comentarios
weijie.zhu
weijie.zhu el 30 de Nov. de 2023
Thank you very much for your help. Sincere wishes!
Star Strider
Star Strider el 30 de Nov. de 2023
As always, my pleasure!
You, too!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Axis Labels en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by