TransWikia.com

Returning properties of plot

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?

2 Answers

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"]

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

Answered by kglr on July 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP