0
$\begingroup$

Possible Duplicate:
How to insert guide-lines in graphics without specifying range?

When we're using ArrayPlot, it's possible to draw a grid by doing:

ArrayPlot[{{1, 0, 0, 0.3}, {1, 1, 0, 0.3}, {1, 0, 1, 0.7}}, Mesh -> True]

But I can't find a way of doing it on Plot, ListPlot and ListLinePlot, can you help me?

$\endgroup$
1
  • $\begingroup$ Also, many more here $\endgroup$ – rm -rf Aug 29 '12 at 21:57
5
$\begingroup$

GridLines? eg

ListLinePlot[Table[Sin[x], {x, 0, 10, .1}], GridLines -> Automatic]

Mathematica graphics

and similarly for

Plot[Sin[x], {x, -5, 5}, GridLines -> Automatic]
ListPlot[Table[Sin[x], {x, 0, 10, .1}], GridLines -> Automatic]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.