Borrar filtros
Borrar filtros

how to show grid lines?

28 visualizaciones (últimos 30 días)
bsd
bsd el 8 de Sept. de 2011
Dear sir/madam,
I gave the command grid on, but no grid lines were shown on the figure window. Why is it so? What is the right way to get grid lines? Looking forward to hearing from you soon.
Thanking you, BSD

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 8 de Sept. de 2011
Do you have anything plotted? There has to be something plotted for the grid to be visible.
plot(1:10);grid on

Más respuestas (1)

Grzegorz Knor
Grzegorz Knor el 8 de Sept. de 2011
Do you have specified XTick and YTick? Look at these examples:
plot(1:10)
grid on
and:
plot(1:10)
grid on
set(gca,'XTick',[])
set(gca,'YTick',[])

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