Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions dealing with optional named arguments of Mathematica functions.
15
votes
How do I get a list of allowed values for an option?
Second, as you see with "Elements" or "ImageList" options of Export, options are not always symbols, but usage messages cannot be applied to strings and documentation to string options rarely exists as …
1
vote
What's the best way to select compatible options?
in the Setting Up Functions with Optional Arguments tutorial:
odeplot[de_, y_, {x_, x0_, x1_}, opts : OptionsPattern[]] :=
Module[{sol},
sol = NDSolve[de, y, {x, x0, x1},
FilterRules[{opts}, Options … [NDSolve]]];
If[Head[sol] === NDSolve,
$Failed,
Plot[Evaluate[y /. sol], {x, x0, x1},
Evaluate[FilterRules[{opts}, Options[Plot]]]]
]
]
A nice thing of FilterRules is that it even works …
15
votes
Accepted
Pass Options to Export[]
a function which can take its own options, options of Plot and options of NMinimize. … }]] := Module[{},
Print["Given Options usable by f only:",
FilterRules[{opts}, Options[f]]];
Print["Given Options usable by Plot only:",
FilterRules[{opts}, Options[Plot]]];
Print["Given …
7
votes
Options which require RuleDelayed
One possible way to get some candidates is to test all Options of all System` symbols
extractRuleDelayedOptions[symbol_String] :=
With[{opts = Options @@ MakeExpression[symbol]},
Cases[opts, (p_ : … Who knows what further options we missed.
The problem with this approach is as follows: It doesn't tell you what Options require :> when they are used inside a function call. …
4
votes
Accepted
Options which require RuleDelayed
Let us start a community wiki answer where we collect possible :>-options because I think this question got enough attention by many of the experienced users to tell there isn't an easy way to get such … Please append more options below
{
EvaluationMonitor, EventAction, Initialization,
InterpretationFunction, NotebookDynamicExpression,
StepMonitor, TrackedSymbols, UnsavedVariables, UntrackedVariables …
17
votes
How can I set Grid alignments using numbers?
It seems that the handling of the Alignment option is not consistent for all functions using it. Panel for instance seems to support numeric values for this option
Manipulate[
Panel["\[Times]", Imag …
28
votes
Accepted
Inline documentation of "Properties"
As I said already in my comment above, basically we have two different situations here:
the trend since Mathematica V6 that many options are not symbols any more but rather strings.
function arguments … At the end of this function, an Association is created where the keys are string-properties (or options) and the values are the explanation extracted from the documentation page. …
6
votes
Accepted
No shading in ContourPlot3D
You need to set the ContourStyle:
ContourPlot3D[
x^3 + y^2 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2},
ContourStyle -> None
]
10
votes
Pass list of options to Plot3D
using the names:
With[{plotOptions = {PlotPoints -> 10, MaxRecursion -> 2}},
Plot3D[x y, {x, 0, 10}, {y, 0, 10}, plotOptions]
]
Another way is to make a function from your Plot3D call and pass your options …
15
votes
Accepted
Manipulating OptionsPatterns[]
Just catch the options given to your function in a variable and use FilterRules
odeplot[de_, y_, {x_, x0_, x1_}, opts : OptionsPattern[]] :=
Module[{sol},
sol = NDSolve[de, y, {x, x0, x1},
FilterRules … [{opts}, Options[NDSolve]]];
If[Head[sol] === NDSolve,
$Failed,
Plot[Evaluate[y /. sol], {x, x0, x1},
Evaluate[FilterRules[{opts}, Options[Plot]]]]
]
] …
19
votes
Where is the old option TraceInternal->True?
Let me first answer your second question, since I can only guess about the main question:
I also observed that the syntax colouring (version 10, windows 7) suggests that Trace can be used with onl …
37
votes
Accepted
Quickly look-up usages, options and attributes of symbols
Options button
The options button displays a custom made panel which is awesome. … regarding number of options. …