1
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]
bbgodfrey
  • 61,439
  • 17
  • 89
  • 156
Qi Zhong
  • 1,037
  • 9
  • 16
  • 3
    Try:variable = {PlotPoints -> 24, MaxRecursion -> 0, ColorFunctionScaling -> False, BoundaryStyle -> None, MaxRecursion -> 0}; Plot[x, {x, -1, 1}, Evaluate@variable]? – kglr Apr 09 '16 at 03:05
  • To splice in a list of options, try Sequence@@list. – Yves Klett Apr 09 '16 at 06:04

0 Answers0