Mathematica Asked by youbowl on July 6, 2021
How can I find out the DefaultStyle of Axes, Frames, PlotRangeClipping of Plot, DensityPlot, etc. and can I manipulate them?
AbsoluteOptions for the first part of question.
Answered by Chris on July 6, 2021
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
Answered by kglr on July 6, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP