On all the plots of a notebook I have to put a vertical line at the same place. I thus use the GridLines option for Plot along with the option GridLinesStyle. To get it done easily I use the function SetOption for Plot:
SetOptions[Plot,GridLines->{{1},{}},GridLinesStyle->Red]
Plot[x,{x, 0, 2}]
Plot[x,{x, 0, 2},GridLinesStyle->Red]
The style has not been applied to the GridLine in the first plot
It worked here
Am I doing something wrong, or is it just that GridLinesStyle does not work with SetOptions for some reason? I do apologize if this question has already been asked but I could not find any information about this issue.
GridLinesStyle
overrides previous settings . What I am also wondering why the first case does not work... However, it works withPlotStyle
$\endgroup$