Hello Is there are way to get gridlines to extend only as far as the gridline specification rather than extending to the plotting range. For example, the following code:
Plot[Sin[x], {x, -10, 10},
PlotRange -> {{-12, 12}, {-12, 13}},
AxesLabel -> {x, y},
LabelStyle ->
Directive[Black, 14, Italic, FontFamily -> "Times New Roman"],
AxesStyle -> Arrowheads[{0.1, 0.03}],
GridLines -> {Range[-10, 10, 1], Range[-10, 10, 1]},
GridLinesStyle -> Directive[Gray, Normal],
Ticks -> {{-10, -5, 5, 10}, {-10, -5, 5, 10}},
TicksStyle ->
Directive[Black, Plain, 12, FontFamily -> "Times New Roman",
Background -> Directive[Opacity[0.75], White]],
Epilog ->
Text[Style["O", Italic, FontSize -> 12,
FontFamily -> "Times New Roman"], {0.5, 0.75}]
]
yields the plot where the gridlines extend beyond the 10-by-10 grid specified (see plot below).
TIA Geoffrey