4
$\begingroup$

How would I draw a grid with dots on specified intersections? The image below shows the basic idea:

enter image description here

If I wanted to label the grid lines with index numbers or letters, how would I do that?

$\endgroup$
1
  • 1
    $\begingroup$ Use Graphics[],Line[],Point[] ... $\endgroup$ Feb 27, 2014 at 21:22

1 Answer 1

8
$\begingroup$

GridLines and Ticks should prove useful.

Graphics[{PointSize[Large], Point[{10, 20}]}, 
 GridLines -> {Range[0, 25], Range[0, 25]},
 Ticks -> {{{5, "A"}, {10, "B"}, {15, "C"}, {20, "D"}}, Automatic},
 PlotRange -> { {0, 25}, {0, 25}}, Axes -> True]

grid

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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