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.
5
votes
0
answers
629
views
OptionValue: unknown option
Below is an illustration of the problem
Options[myPlot] = {cc -> 10};
myPlot[f_, opts : OptionsPattern[]] :=
Module[{},
Plot[f[x] OptionValue[cc], {x, 1, 2},
Evaluate[FilterRules[{opts}, Options …
6
votes
0
answers
372
views
About the OptionsPattern[] approach of inheriting Options
For example, If you have a function f with options set as
Options[f] = {...};
and you also have a bunches of function g,h,p,q,... that all inherit options from f via Join. … However, the true available options of f should be all Plot options plus {opt1->1}. This behaviour of Options makes inheritance impossible. …
2
votes
0
answers
126
views
SetSystemOptions is obsolete? What is next? [closed]
When running the following code on Mathematica 10.2
SetSystemOptions[ "CompileOptions" -> "CompileReportExternal" -> True];
I received the message:
System`SetSystemOptions::obs: Developer`SetSy …
49
votes
3
answers
28k
views
How to change plot style or other options after it was created
For example:
p = Plot[Sin[x], {x, 0, 1}]
Is it possible to write options in Show to change the curve's color for example into red?
Show[p, (* Option?? *)] …
1
vote
1
answer
70
views
Can not get OptionValue with SetDelayed variable
ClearAll[foo1];
foo1[OptionsPattern[]] := Hold[OptionValue[""]][[1, 1]]
foo1[]
gives function name
foo1
But
ClearAll[getName];
getName := Hold[OptionValue[""]][[1, 1]]
ClearAll[foo2];
foo2[OptionsPa …