3
$\begingroup$

This question already has an answer here:

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$

marked as duplicate by zhk, yohbs, m_goldberg plotting Apr 22 '17 at 3:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    $\begingroup$ You could make a plot theme... $\endgroup$ – J. M. will be back soon Apr 21 '17 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 '17 at 10:23
  • $\begingroup$ J. M. Thank you for the link. $\endgroup$ – lio Apr 21 '17 at 12:38
5
$\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$
2
$\begingroup$

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

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

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