How to reduce the space between Yticks?

1 visualización (últimos 30 días)
Hari krishnan
Hari krishnan el 6 de Nov. de 2018
Editada: madhan ravi el 6 de Nov. de 2018
Hi, I am plotting a scatter plot with two groups on the Y axis. I want to reduce the distance between these groups in the plot as i only have two groups. Any help to solve this will be appreciated.

Respuesta aceptada

madhan ravi
madhan ravi el 6 de Nov. de 2018
Editada: madhan ravi el 6 de Nov. de 2018
ylim([0 2])
yticks([0 2])
or
set(gca,'YTick',0:0.5:2)
  1 comentario
madhan ravi
madhan ravi el 6 de Nov. de 2018
Editada: madhan ravi el 6 de Nov. de 2018
not sure what you want from the above? or try plotyy()

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Axis Labels 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!

Translated by