Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question

marked as duplicate by R. M., J. M. Aug 30 '12 at 0:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Also, many more here – R. M. Aug 29 '12 at 21:57

1 Answer 1

up vote 4 down vote accepted

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]
share|improve this answer

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