5

How can I find out the DefaultStyle of Axes, Frames, PlotRangeClipping of Plot, DensityPlot, etc. and can I manipulate them?

youbowl
  • 51
  • 4

2 Answers2

1

Default styles for Axes, Ticks, Frame (DefaultAxesStyle, DefaultTickStyle, etc.) are options for GraphicsBox:

defaultstyles = Symbol /@ Names["Default*Style"]

enter image description here

graphicsDefaultStyles = DeleteCases[Quiet @ Options[GraphicsBox, defaultstyles], 
  HoldPattern[DefaultBaseStyle -> _]]

enter image description here

These styles are defined in style sheets and can be discovered using CurrentValue[{StyleDefinitions, stylename}]:

{#, CurrentValue[{StyleDefinitions, #2}]} & @@@ graphicsDefaultStyles // Grid

enter image description here

We can also use CurrentValue[{GraphicsBoxOptions, ...}] to get the default styles:

CurrentValue[{GraphicsBoxOptions, #}] & /@ defaultstyles

enter image description here

kglr
  • 394,356
  • 18
  • 477
  • 896
0

AbsoluteOptions for the first part of question.

Chris
  • 447
  • 2
  • 12
  • 3
    It'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
  • 1
    Don'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