How can I find out the DefaultStyle of Axes, Frames, PlotRangeClipping of Plot, DensityPlot, etc. and can I manipulate them?
Asked
Active
Viewed 151 times
2 Answers
1
Default styles for Axes, Ticks, Frame (DefaultAxesStyle, DefaultTickStyle, etc.) are options for GraphicsBox:
defaultstyles = Symbol /@ Names["Default*Style"]
graphicsDefaultStyles = DeleteCases[Quiet @ Options[GraphicsBox, defaultstyles],
HoldPattern[DefaultBaseStyle -> _]]
These styles are defined in style sheets and can be discovered using CurrentValue[{StyleDefinitions, stylename}]:
{#, CurrentValue[{StyleDefinitions, #2}]} & @@@ graphicsDefaultStyles // Grid
We can also use CurrentValue[{GraphicsBoxOptions, ...}] to get the default styles:
CurrentValue[{GraphicsBoxOptions, #}] & /@ defaultstyles
kglr
- 394,356
- 18
- 477
- 896
0
AbsoluteOptions for the first part of question.
Chris
- 447
- 2
- 12
-
3It's not a good idea: https://mathematica.stackexchange.com/q/83648/1871 – xzczd Sep 12 '20 at 03:06
-
@xzczd That link doesn't say that there is any wrong about AbsoluteOptions, as far as I can see. – Chris Sep 12 '20 at 03:13
-
1Don't miss the link there… OK I should have directly post this link: https://mathematica.stackexchange.com/q/68937/1871 – xzczd Sep 12 '20 at 03:20




Options@Plot, andSetOptions? – Rohit Namjoshi May 03 '20 at 19:21