Plotting only one axis

40 visualizaciones (últimos 30 días)
Jetson Ronald
Jetson Ronald el 8 de Jun. de 2012
Hello I am having a plot and I don't want to use the axis off command to remove the information in both axes, but I want to have the information in the X-axis and want the Y-axis to be completely free. Kindly help me how to do that.

Respuestas (2)

Aurelien Queffurust
Aurelien Queffurust el 8 de Jun. de 2012
I would use these commands:
plot(1:10)
set(gca,'ytick',[],'Ycolor','w','box','off')

Jessica Lam
Jessica Lam el 8 de Jun. de 2012
You may set the axis color same as the background color .
  1 comentario
Jessica Lam
Jessica Lam el 8 de Jun. de 2012
You may find the following code for your reference.
figure1=figure(1);
axes1 = axes('Parent',figure1,...
'YColor', get(figure1,'Color'));
hold(axes1,'all');
plot (1:10,'b');

Iniciar sesión para comentar.

Categorías

Más información sobre Line Plots 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