# can someone how to plot $x = c$ in a different color scheme? [duplicate]

This question already has an answer here:

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

-
PlotStyle? Do not g**gle, press F1. And about GridLines, well, there is an option GridLinesStyle too. –  Kuba Sep 20 at 2:21
Perfect, thank you! –  sidht Sep 20 at 2:26
closely related –  Kuba Sep 20 at 2:39
add comment

## marked as duplicate by Kuba, Verbeia♦Sep 20 at 3:02

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.

## 1 Answer

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}]


-
add comment