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$

closed as off-topic by m_goldberg, Feyre, yohbs, Michael E2, MarcoB Nov 10 '16 at 2:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, Feyre, yohbs, Michael E2, MarcoB
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.