1
$\begingroup$

This question discusses how to find out the defaults are for FrameStyle.

How can these options be changed? For example, if we wanted LineColor -> Black and Thickness -> Absolute[0.8], how can this be chaged?

Ideally, it would be good to change it for just a single notebook. Global would be fine too.

$\endgroup$
2
$\begingroup$

You can use SetOptions on the notebook:

SetOptions[
    EvaluationNotebook[],
    GraphicsBoxOptions->{DefaultFrameStyle -> Directive[LineColor->Red,Thickness->Absolute[2]]}
]

I used Red and Absolute[2] instead so that the effects are more noticeable. Also, note that I used Directive, so that the primitives apply to all four edges. If you want to customize individual edges, you would use the usual {{left, right}, {bottom, top}} syntax instead. Here's a very short animation:

enter image description here

$\endgroup$
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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