Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
2
votes
1answer
61 views

Set options once for all, for all Plot-like functions

Currently, to have default font size values for my graphs I do the following: SetOptions[{Plot},TicksStyle->Directive[50],AxesStyle-> Directive[50]]; However ...
0
votes
0answers
36 views

Option value check with suboptions

I am trying to adopt very interesting universal option check method. And I am completely lost since in one case in seems working, while in the other don't. I am looking for explanation why it fails an ...
0
votes
0answers
23 views

Why does ComplexListPlot labeling function require an Evaluate?

Start with the list of the cube-roots of unity: cubeRoots = ComplexExpand[Exp[(2 \[Pi] Range[0, 2] I)/3]] I want to use ...
1
vote
1answer
53 views

Change default ImageSize for all graphics functions programmatically only for the current session

How do I change the default ImageSize for all functions producing graphics programmatically for the current session (only)? Something close to an answer is given in https://mathematica.stackexchange....
1
vote
0answers
38 views

How to turn off cell brackets programmatically? [closed]

From the documentation, it appears that executing SetOptions[EvaluationNotebook[], ShowCellBracket -> False]; in the current notebook, should immediately hide ...
2
votes
2answers
64 views

Use method “ExactAlgebraics” of PossibleZeroQ for Series zero test

I am trying to compute a series expansion around infinity with very large numerical, but entirely algebraic coefficients, and I keep running into zero test errors, which look exactly like the ones ...
3
votes
2answers
46 views

Options in function definition not working with a second set of square brackets?

If I define, for example, f[OptionsPattern[{}]] := OptionValue[a] Then the output for f[a -> 1] is 1. However, in my code, I ...
0
votes
0answers
25 views

Vertical text in a nested grid not aligning correctly along the horizontal (center desired)

I reconstructed the results of several functions that generate rows and nested grids so as to do away with the minutia. I am having difficulty getting the vertical text to ...
12
votes
4answers
349 views

Is it possible to separately call the default value of a variable which isn't at the end of the sequence?

After reading this post I recalled an old question I once met. We know that we can set default values for variables of a function: ...
1
vote
1answer
19 views

Delayed evaluation of functions in InputAutoReplacements and InputAliases

The code CreateDocument[{},InputAutoReplacements->{"test"->DateString[]}]; generates a new notebook and "test" triggers an output ...
2
votes
0answers
49 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 ...
1
vote
1answer
37 views

Default Options not working in user-defined function for SymbolName

Abstract I have a function objectName[symbol] that returns the SymbolName as both a standalone function or when nested inside ...
7
votes
2answers
78 views

How to know what GraphLayout was used when Method set to Automatic

I was expecting to get the answer to the above by doing either of the following: ...
6
votes
1answer
63 views

Option Inspector “Permanent” Change

Whenever the package LieART is loaded using << LieART`, ...
12
votes
1answer
228 views

Option Lighting in the Show function does not work

Bug introduced in 11.2 or earlier and persisting through 12.1 There are something wrong when I try to evaluate the example from Lighting Docs, here is the code: <...
4
votes
1answer
52 views
2
votes
1answer
57 views

How to replace an option value in a rules list captured by `OptionsPattern`?

While experimenting with options, I tried to replace a value in the rules list captured by OptionsPattern. However, the following approach does not work as I ...
0
votes
0answers
21 views

Default option for function: equal parameters

What would be the best way to define a second parameter which is equal to a first parameter? This does not work ...
0
votes
1answer
24 views

AbsoluteOptions not working with PlotPoints?

AbsoluteOptions does not work well with PlotPoints, for example: ...
3
votes
1answer
43 views

Making a function with Options, where the option depends on the function variables

Lets say as a (dumb) minimal example you had the following: ...
5
votes
0answers
59 views

What does the PerformanceGoal option of FindMinimum do?

FindFit and FindMinimum both have a PerformanceGoal option. It is not documented. What does ...
0
votes
1answer
43 views

Why does my $y$ axis extend below $y=0$?

I have an issue where my y axis is drawn too far down. I feel like there should be a question out there asking about this, but I wasn't able to find anything. Is there any way to make the y-axis only ...
2
votes
1answer
37 views

Problem with superscript

I would like to know if there is option to make such scrpits like in this picture below. Is option to put letter instead of a *?
3
votes
1answer
47 views

SetOption for AxesStyle and AxesLabels differently

I can set the Options for Plot as: ...
6
votes
1answer
55 views

What is the difference between `OptionsPattern` and a sequence of `Rule` in a pattern?

I'm experimenting with options. In my first tests, I wrote something like that to capture the options given to a function: f[opts___Rule]:= {opts} I later ...
19
votes
1answer
504 views

Confused by the opts : OptionsPattern[ ] pattern

I'm trying to make sense of the syntax in the clause opts:OptionsPattern[], as found in this standard "rule-based" (pseudo-)function definition pattern: ...
2
votes
2answers
100 views

How can I define an alias for OptionValue?

I want to define a function OV which acts as shorthand notation for OptionValue, so that I can use it as in ...
6
votes
1answer
203 views

Graphs' options vs JournalArticle stylesheet

Bug introduced in 10.4 and fixed in 11.0.1 As noticed by Alexei Boulbitch, below one of my answers, there appears to be an unexpected issue with VertexLabels in <...
14
votes
3answers
893 views

How to check the validity of an option value

I have a user-defined function, func, which takes the following form: func[arg1, arg2, options] Here is the actual code ...
9
votes
1answer
129 views

Why Optional in Set is not held by the HoldFirst attribute?

When evaluatingf[x_:x0] := x, x0 will be evaluated, regardless of the HoldAll attribute of <...
2
votes
1answer
78 views

Issue using optional argument before options [duplicate]

I have a problem using optional arguments before an OptionsPattern: ...
20
votes
2answers
812 views

How do I override options with my own defaults?

I'm calling a function f from within a function g and would like to pass any valid options for ...
4
votes
2answers
122 views

Using Padding and Margins with Graphics object

I have relatively simple question. I need to control size and background color of the following two zones separately (indicated by blue and magenta arrows on the figure). Using ...
5
votes
1answer
105 views

Setting options of object after defining it

Is it possible to edit the options of an object like Plot or Graphics after I store it as a variable? For example, consider the ...
14
votes
1answer
464 views

“ParametricSensitivity” in ParametricNDSolve

"ParametricSensitivity" is listed as a Method in the documentation for ParametricNDSolve, ...
6
votes
1answer
97 views

How to specify Options for a custom Import converter?

Mathematica includes RegisterImport to setup custom functions which read and translate file data for Import, effectively ...
2
votes
0answers
41 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 "...
17
votes
1answer
257 views

Notebook's TaggingRules inherit too much

Bug introduced in V10.4 or earlier and persisting through V12.0 [CASE:3852725] was created [...] I have forwarded an incident report to our developers with the information you provided. [...] ...
0
votes
0answers
24 views

What's the default setting of “NeighborhoodRadius” in “MeanShift” method of FindClusters"?

I'm using the FindClusters option Method -> "MeanShift". It works without an input of the sub-option "NeighborhoodRadius". In ...
5
votes
1answer
83 views

What are the automatic settings of a BSplineCurve object?

Consider the following object: spline = BSplineCurve[{{0,1}, {1,1}, {0,1}, {-1,1}, {-1,0}}, SplineClosed->True]; Graphics[spline] What would be an equivalent <...
6
votes
1answer
96 views

How to delete an option from a notebook

The Q&A How to unset an notebook option programmatically? nearly asks the same question, but the focus there is on how to unset an option that has been given a value. I just want to undo a ...
1
vote
0answers
30 views

Open all notebooks in Working mode?

Is there a way to specify this as a global setting that oversides an individual notebook screen environment setting? Motivation: I have a folder of many slideshows and need to change this manually ...
2
votes
1answer
34 views

Using the value of OptionValue to clear a list

I'm currently using OptionValue inside a function, the Option I passed to the function should be cleared, then populated with ...
4
votes
0answers
62 views

Am I using the cell option setting PageBreakWithinGroup->False correctly?

I had expected that this option would prevent a page break occurring within a group of cells of which this cell is the "group leader". In my case it is a ...
5
votes
1answer
101 views

Is there a (simple!) way to convert all initialization cells of a document to normal cells?

I like to work with initialization cells. During the different stages of development of my notebooks, I however often need to change those. If they are scattered throughout the notebook, it is ...
1
vote
0answers
26 views

What does this statement about congruential randomness mean in the documentation?

Reading through the random number generator guide on wolfram, under the methods section for the congruential method, it talks about the “Bits” option. Could someone explain what this means to me? I ...
17
votes
1answer
294 views

What are the possible Method option values for plotting functions?

Many plotting functions have a Method options with descriptions like this: Plot: "the method to use for refining curves" ...
1
vote
4answers
93 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
1answer
147 views

What is the meaning of some of the capital letters? [closed]

One can get capital letters as follows ToExpression@(Capitalize /@ Alphabet[]) We know that E,I,N,D are functions of Mathematica but what about K,C,O? they have ...
1
vote
0answers
55 views

Image option is initialized when a graphic is in { }

It is helpful(necessary)to read the following before proceed: view is not fixed completely regardless of vewpoint I found that, if a graphic code is surrounded by { }, the output becomes as if the ...

1
2 3 4 5
11