1
$\begingroup$
Plot[y=x, {x, -1, 1}, PlotPoints -> 24, MaxRecursion -> 0, 
    ColorFunctionScaling -> False, BoundaryStyle -> None, MaxRecursion -> 0]

I will make several plots using the same sentences PlotPoints -> 24, MaxRecursion -> 0, ColorFunctionScaling -> False, BoundaryStyle -> None, MaxRecursion -> 0. How can I define variable= PlotPoints -> 24, MaxRecursion -> 0, ColorFunctionScaling -> False, BoundaryStyle -> None, MaxRecursion -> 0 to simplfy the code like this:

Plot[y=x, {x, -1, 1}, variable]
$\endgroup$
2
  • 3
    $\begingroup$ Try:variable = {PlotPoints -> 24, MaxRecursion -> 0, ColorFunctionScaling -> False, BoundaryStyle -> None, MaxRecursion -> 0}; Plot[x, {x, -1, 1}, Evaluate@variable]? $\endgroup$
    – kglr
    Apr 9 '16 at 3:05
  • $\begingroup$ To splice in a list of options, try Sequence@@list. $\endgroup$
    – Yves Klett
    Apr 9 '16 at 6:04