4
$\begingroup$

I have many ListPlot and ListLinePlot in my notebook.

I each command I have added PlotStyle -> Thick, AxesStyle -> Thick, FrameStyle -> Thick.

How can I set these styles globally for all plots?

$\endgroup$
3
  • 1
    $\begingroup$ You could make a plot theme... $\endgroup$ Apr 21, 2017 at 10:09
  • 1
    $\begingroup$ @J. M. Could you please show an example how I can define and then use such a theme. $\endgroup$
    – lio
    Apr 21, 2017 at 10:23
  • $\begingroup$ J. M. Thank you for the link. $\endgroup$
    – lio
    Apr 21, 2017 at 12:38

2 Answers 2

6
$\begingroup$

You could set it as :

plotset = {PlotStyle -> Thick, AxesStyle -> Thick, 
   FrameStyle -> Thick};

Plot[Sin[x], {x, -6, 6}, Evaluate@plotset]

ListPlot[{1, 2, 3, 4, 5}, Evaluate@plotset]
$\endgroup$
4
$\begingroup$

Also possible SetOptions[{Plot, ListPlot}, {PlotStyle -> Thick, AxesStyle -> Thick, FrameStyle -> Thick}]

$\endgroup$
3
  • $\begingroup$ This works for Plot but needs to be called again ListPlot. $\endgroup$
    – bbgodfrey
    Apr 21, 2017 at 17:20
  • 1
    $\begingroup$ @bbgodfrey: combined: SetOptions[{Plot,ListPlot}, {PlotStyle -> Thick, AxesStyle -> Thick, FrameStyle -> Thick}] $\endgroup$
    – lio
    Apr 21, 2017 at 22:50
  • $\begingroup$ @lio I added that to the answer. Thanks. $\endgroup$
    – yohbs
    Apr 24, 2017 at 15:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.