6
$\begingroup$

How can I set an option like

TicksStyle -> Directive[Black, Bold, 12]

notebook-wide, so that it is used for any Plot and ListPlot in my notebook?

$\endgroup$
  • 3
    $\begingroup$ SetOptions[{Plot, ListPlot}, TicksStyle -> Directive[Black, Bold, 12]]; $\endgroup$ – corey979 Nov 9 '16 at 11:52
  • $\begingroup$ This question seems to be well received, even though SetOptions could have been found in the documentation. $\endgroup$ – DPF Nov 10 '16 at 9:14
7
$\begingroup$

Default:

GraphicsRow[{Plot[Sin[x], {x, 0, 2 Pi}], ListPlot[Range[6]]}]

enter image description here

To set global options:

SetOptions[{Plot, ListPlot}, TicksStyle -> Directive[Black, Bold, 12]];

then

GraphicsRow[{Plot[Sin[x], {x, 0, 2 Pi}], ListPlot[Range[6]]}]

enter image description here

$\endgroup$

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