Exactly as title says. I do not know why I am having so much trouble with this. I have googled many solutions and I cannot find a straightforward answer.

Also, the only method I know is "Gridlines" and there is no option to change colour

  • $\begingroup$ PlotStyle? Do not g**gle, press F1. And about GridLines, well, there is an option GridLinesStyle too. $\endgroup$
    – Kuba
    Sep 20, 2013 at 2:21
  • $\begingroup$ Perfect, thank you! $\endgroup$
    – Lemon
    Sep 20, 2013 at 2:26
  • $\begingroup$ closely related $\endgroup$
    – Kuba
    Sep 20, 2013 at 2:39

1 Answer 1


Here's an example that uses GridLines that are specific colors at specific positions:

Plot[Sin[x], {x, 0, 10}, PlotStyle -> Directive[Red, Thick], 
 GridLines -> {{{Pi, Blue}, {3 Pi, Orange}}, None}]

enter image description here


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