2
$\begingroup$

For completing this answer,I'm digging function WarpingCorrespondence with GeneralUtilities`PrintDefinitions.I found a piece code like

SameQ[
        optionValues = System`Utilities`GetOptionValues[TimeWarpingMethod,
                    Part[Options @ TimeWarpingMethod, All, 1],
                    options
                ],
                $Failed
    ]

But as I try,I cannot understand the usage of System`Utilities`GetOptionValues.And I found a series function with *Option* by

?System`Utilities`*Option*

Mathematica graphics

As we know,we just can get those value of option Method from documentation.I think those function can help a little.Can anybody give some example about how to use it?

$\endgroup$
  • 2
    $\begingroup$ Usage is quite self explanatory: System`Utilities`GetOptionValues[Panel, Part[Options@Panel, All, 1], {ImageSize -> Style[Large, Red]}] $\endgroup$ – Kuba Apr 24 '17 at 7:51
  • $\begingroup$ @Kuba Thanks,hard to realize it..And do you get the mean of System`Utilities`GetMethodOptionValues? $\endgroup$ – yode Apr 24 '17 at 8:13
1
$\begingroup$

There are some examples about how to use it

System`Utilities`FilterOptions

Select those options in {PlotRange, RotateLabel}

System`Utilities`FilterOptions[{PlotRange, RotateLabel}, Options[Plot]]

Sequence[PlotRange->{Full,Automatic},RotateLabel->True]

System`Utilities`FilterOutOptions

Select those options out of {PlotRange, RotateLabel}

System`Utilities`FilterOutOptions[{PlotRange, RotateLabel}, Options[Plot]]

Sequence[AlignmentPoint->Center,AspectRatio->1/GoldenRatio,Axes->True,AxesLabel->None,AxesOrigin->Automatic...]

System`Utilities`GetOptionValues

From the Kuba's comment

System`Utilities`GetOptionValues[Panel,Keys[Options@Panel], {Alignment -> 555}]

{555,Automatic,Automatic,Automatic,{},True,Panel,PanelLabel,Automatic,Automatic,0,Automatic,{},False,Automatic,False}

And the System`Utilities`GetHeldOptionValues have a same behavior.

System`Utilities`ProcessOptionNames

Make the key of rule be string

System`Utilities`ProcessOptionNames[Thread[{a, b, c, d} -> Range[4]]]

{"a" -> 1, "b" -> 2, "c" -> 3, "d" -> 4}

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.