Questions tagged [options]
Questions dealing with optional named arguments of Mathematica functions.
618
questions
2
votes
1
answer
154
views
SetOption for plotting [duplicate]
I want to change the default of ListLinePlot to use the scientific PlotTheme with a grid
...
2
votes
1
answer
106
views
Determining Automatic Parameters used by Mathematica [duplicate]
When you use plotting functions like ContourPlot3D, there are lots of parameters that are left as Automatic if you do not ...
2
votes
1
answer
92
views
Label cell goes away with SelectionEvaluate
When a given cell has a label (given with the CellLabel->"label" option of the cell), then this label disappears after calling
SelectionEvaluate[ nb ]
when the ...
2
votes
1
answer
154
views
Append CellTag to list of Cells
As suggested in this earlier post, I restate my question here about appending CellTags option to existing list of Cells.
What I ...
2
votes
1
answer
235
views
SetOptions and Cell
I'm trying to change the CellLabel of Cells using
SetOptions[Cell, CellLabel -> "test"]
or
...
2
votes
1
answer
78
views
Setting default function values for particular option values
I have a function with some optional arguments. How do I assign a value for the function when one of the optional arguments takes a particular value, regardless of any other argument values?
2
votes
1
answer
96
views
OptionValue and OptionPattern not Changing Values
I am trying to produce a function with a few sets of arguments, one of which can accept options. However it doesn't seem to be responding to the changes that I accept.
...
2
votes
1
answer
339
views
Programming a DBSCAN in Mathematica
FindClusters has a built-in Method called "DBSCAN". You can find it on this page:
https://...
2
votes
1
answer
93
views
can square brackets be set to 'SpanMaxSize -> Infinity', so they act like parantheses globally?
From an answer to Keyboard entry of square bracketed matrices in text cells, How to? ,
I cribbed this code:
CurrentValue[EvaluationNotebook[], InputAliases] =
DeleteDuplicates@
Append[...
2
votes
1
answer
112
views
Function which can take custom options and also accept options for functions that it calls
Consider a function myFunc with options
...
2
votes
1
answer
147
views
Keeping a notebook in the toolbar File list
I have a notebook called "Useful Stuff" in which I put things I keep forgetting and for storing bits of useful code. I would like to keep this notebook in the list of notebooks that appear when you ...
2
votes
1
answer
84
views
(SetOptions + Inherited) wrong behaviour in *EventActions?
It seems there is something wrong in the expected behaviour of setting an option back to its default value when this command is executed inside a *EventActions : ...
2
votes
2
answers
247
views
Options for a function I define that can be passed to functions I call in the definition
I know, this is very close to Functions with Options and/or Function with custom Options and modified Options for built-in Symbols, but I don't get it.
My function looks like this one:
...
2
votes
0
answers
57
views
Global LabelStyle option does not work with SetOptions
I want to set global options for a plot, so I used the SetOptions command.
However, some of the options don't seem to be applied. More specifically, this is the ...
2
votes
0
answers
492
views
Trouble with ParametricPlot and custom options
Consider the following code:
Options[pl] = {lim->{0,1}};
pl[n_, OptionsPattern[]] := Plot[x^n, Join[{x}, OptionValue[lim]] ]
This function works as expected on ...
2
votes
0
answers
57
views
Can Mathematica be set to remind user to save after a set number of unsaved edits have occurred or after a set amount of time has passed?
I lost half a night's work just now because after about 6 months of learning and working with Mathematica it finally decided to crash on me for the very first time. Yeah my bad. At least I can ...
2
votes
0
answers
143
views
How to define OptionsPattern with autocompletion?
I wish to define a custom function having optional parameters.
Usually, OptionsPattern[] meets my requirements, but I would like to build the function similar to embedding ones, which after typing &...
2
votes
0
answers
102
views
What Transforming Functions does Simplify use? [closed]
Edit: Turns out in my use case I should use ComplexExpand instead of Simplify. My broader question is still worth answering, but ...
2
votes
0
answers
74
views
What does the option Method->Method in NIntegrate mean? [closed]
Among options for NIntegrate one finds the following construction Method->{name1, Method->name2}. For example, ...
2
votes
0
answers
45
views
Graphics options defined as a set [duplicate]
I need to use almost the same options for several graphics, and would like to simplify the code which is becoming pretty large. The example below should work, but it doesn't for a reason I don't see.
...
2
votes
0
answers
122
views
Dynamic WindowSize cooperation with resize area
According to 116030:
Front end options, which includes all box options, can take Dynamic heads. That basically means that the FE will compute the value of the ...
2
votes
0
answers
77
views
Problem with exporting plot data into .txt: not whole range is exported [closed]
I need to export my data into a .txt document to import it in $\LaTeX$. For a given M, I used the follow code to export:
...
2
votes
0
answers
125
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:
...
2
votes
0
answers
42
views
How to prevent Mathematica 10 from instantly displaying hover menus? [duplicate]
I recently updated to Mathematica 10 in the hopes to get the most up to date function definitions and run time optimizations. Alas, along with the (hopefully significant) improvements (not so sure ...
2
votes
0
answers
284
views
Confusing NullSpace Method behaviour
The background of this question is that I'm trying to get the bottom of when the output of NullSpace outputs a list of pairwise orthogonal vectors. On my route to ...
2
votes
0
answers
76
views
Error message with RegionPlot after SetOptions
I get an error message with
SetOptions[RegionPlot, ImageSize -> Medium];
RegionPlot[u v (1 - v) >= 10, {v, 0, 1}, {u, 0, 100}]
that says
...
2
votes
0
answers
159
views
Auto-completion for option values in user-defined functions [duplicate]
In here, and all it's closely related links, I cant find anything that tells me how to set a list of the optional arguments.
All I want is something like this
...
2
votes
0
answers
194
views
Set Standard Plot Thickness [duplicate]
All of my plots should have the same set styling, that is, for instance,
{ImageSize->460, Frame->True, PlotStyle->Thickness[0.004]}.
Of course I do not ...
2
votes
0
answers
68
views
Why does AbsoluteOptions give the wrong answer for ListPlot? [duplicate]
I'm trying to get the PlotRange from a ListPlot graphic:
...
2
votes
0
answers
124
views
Setting Up Lightweight Grid On Multiple Clients Programmatically
I have a number of computers which all might need to use the same (client) configuration for the Wolfram Lightweight Grid at some point.
I know that there are ways to programmatically set certain ...
2
votes
0
answers
108
views
How can this function's options be used in different places? [duplicate]
I wrote this function to make a ListPlot where the points are colored by a third argument.
...
2
votes
0
answers
289
views
EventLocator with LSODA?
Is the EventLocator option not compatible with LSODA on NDSolve. Below is what I tried to do ...
1
vote
2
answers
150
views
Changing Plot Options for two different graphs under Manipulate
I am trying to plot two discontinuous functions, each with different plot options, using Manipulate. In my code, I have defined a function for $z$ and $sq$ in my code.
...
1
vote
2
answers
178
views
How to extract arguments of color spaces and determine brightness of said colors?
The objective is to produce an automated theme with contrasting colors for EvaluationNotebook FontColor and ...
1
vote
1
answer
81
views
Extra empty lists as function arguments
Consider the following piece of code:
...
1
vote
1
answer
84
views
how to make a customized plotting function that can accept Mathematica's built-in optional arguments?
Suppose I have the following plotting function:
selfPlot[func_]:=Show[ContourPlot[Re[f[x+I*y]],{x,-2,2},{y,-2,2}],ContourPlot[Im[f[x+I*y]],{x,-2,2},{y,-2,2}]]
...
1
vote
2
answers
144
views
Add options to a graph after construction
Given a graph which has already been constructed, how can I add, e.g., the option VertexSize -> 3 to that graph without having to deconstruct the graph?
1
vote
4
answers
153
views
Adding plot options after @ in ListLinePlot [closed]
How can plot options like PlotLabel and PlotRange be added after @ in ListLinePlot? For example:
...
1
vote
1
answer
54
views
Programmatic access to Export options for filetype
For specific filetypes, e.g JPG, GIF, etc. I would like to get a list of available options for use in Import and Export.
Unfortunately, the obvious thing doesn’t work:
...
1
vote
1
answer
202
views
Overriding the behavior of Dot
I would like to override the behavior of Dot, so that Dot[u,v] will return a scalar instead of a 1x1 matrix in the case that the ...
1
vote
2
answers
93
views
Specifying the PlotRange according to a desired center
I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...
1
vote
1
answer
123
views
Need a few built-in Symbols (functions) whose Options are a mix of Rule-s and DelayedRule-s [closed]
This is for examples in documentation I'm writing for a ResourceFunction["PrettyOptions"] (look for it soon) that is close to completion. Asking for most ...
1
vote
1
answer
58
views
Using Through function with vectors
I have the vectors defined as follows:
v1={x1,y1,z1};
v2={x2,y2,z2};
v12=v2-v1;
v21=v1-v2;
I am passing an integer function for iteration purpose as follows:
...
1
vote
1
answer
693
views
default color scheme in `Histogram` in version 10 [duplicate]
I need to use the default scheme of Histogram in version 10 but cannot get this information.
I know the default scheme used in ...
1
vote
1
answer
96
views
Using a prompt to set options
I am creating a toolbar. One of the buttons on my toolbar is this setcounter button below.
...
1
vote
1
answer
105
views
BubbleChart ignores Ticks option [closed]
BubbleChart does not display ticks to the Ticks option specs.
...
1
vote
2
answers
1k
views
How to store standard plot settings? [duplicate]
If I plot many graphs with some standard set of options. Is there a way to store this set so that i can have better overview/structure over my plotting commands?
example, I plot a function f[x] with ...
1
vote
3
answers
141
views
Options in a StringReplace rule
case1
Options[f] = {"t" -> "0"};
f[___, OptionsPattern[]] := StringReplace["content", "t" :> OptionValue["t"]]
f[]
(*
con0en0
*)
case2
...
1
vote
1
answer
171
views
Put tiny, hidden information on notebook
What is the standard method for inserting tiny, hidden information on notebooks (.nb files) ?
From now on, I am planning to insert small, hidden information on every new notebook. And also for some ...
1
vote
2
answers
77
views
A strange error occurs when using First, Last, and Take to pick out list elements for dynamically styling a button
The top function setstyles is the only one we need to focus on.
However, the four functions below it are needed for this to work. These validate up to 4 properties ...