I have a set of three plots and I want to define the line style for these plots, but I do not want to define this inside the plot function, but outside the plot function, like assigning to a variable. how to do this?
style1 = PlotStyle -> {Black, Thickness[0.004],
AbsoluteDashing[{2, 7}]}
style2 = PlotStyle -> {Black, Thickness[0.004],
AbsoluteDashing[{8, 20}]}
style3 = PlotStyle -> {Black, Thickness[0.004],
AbsoluteDashing[{4, 18, 40}]}
p1 = Plot[Sin[π*x], {x, 0, 1}, style1];
p2 = Plot[Sin[2 π*x], {x, 0, 1}, style2];
p3 = Plot[Sin[3 π*x], {x, 0, 1}, style3];
Show[p1, p2, p3, PlotRange -> All]