Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.