Let's say I would like to know all the Rule
s that apply to PlotTheme->"Detailed"
.
I tried
Select[FullForm[Plot[x, {x, 0, 1}, PlotTheme -> "Detailed"]], Head[#] == Rule &, Infinity]
but I get the Error/Warning that FullForm
was called with 0 arguments, which doesn't make sense to me. What would be the correct way to do this?
Cases
instead ofSelect
like this:Cases[ Plot[x, {x, 0, 1}, PlotTheme -> "Detailed"], x_ /; Head[x] === Rule, Infinity ]
$\endgroup$RuleDelayed
, e.g.,Cases[Plot[x, {x, 0, 1}, PlotTheme -> "Detailed"], x_ /; (Head[x] === Rule || Head[x] === RuleDelayed), Infinity]
. In this particular case that only adds oneDisplayFunction :> Identity
$\endgroup$