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 ...
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 ...
6
votes
1answer
63 views

Option Inspector “Permanent” Change

Whenever the package LieART is loaded using << LieART`, ...
4
votes
1answer
52 views

AnimationRunning option of Animate misbehaving

This simple example gives a strange error. ...
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 *?
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 ...
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 ...
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: ...
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: ...
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 ...
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 "...
3
votes
1answer
47 views

SetOption for AxesStyle and AxesLabels differently

I can set the Options for Plot as: ...
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 ...
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 ...
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 ...
2
votes
1answer
46 views

Repeat PlotStyle for different functions [closed]

I am trying to plot a helicoid using Plot3D. I would like all the functions that make it up to appear the same. I am curious if there is a way I can do that other ...
4
votes
1answer
101 views

No shading in ContourPlot3D

Say you want to plot a horizontal plane using ContourPlot3D[x == 0, {x, 0, 100}, {y, 0, 100}, {z, 0, 100}] How to turn off the shading? I would like to have only ...
2
votes
1answer
35 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?
0
votes
1answer
52 views

ContourPlot: Setting Global Options for Bar Legend

I'm looking to specify the appearance of contour plots globally in my Mathematica notebook. This is easily done with SetOptions: ...
5
votes
1answer
135 views

How to safely forward/manage options between functions?

Algorithms can often be splitted into smaller and reusable functions (that's a good thing). However with this scheme it is not clear to me how to ensure the consistency of the option values and ...
0
votes
2answers
127 views

How to get the derivative with StepMonitor?

I am trying to use StepMonitor inside of the NDSolveValue function for a complicated system of differential equations, but the simple example below shows my issue just fine. I am trying to obtain ...
0
votes
2answers
87 views

Why are these plots not the same?

I have the following code: ...
5
votes
2answers
94 views

Giving Plot options defined outside of the Plot expression [duplicate]

How can I give Plot formating expressions on a separate line just like ListPlot? When I use the following code with ...
0
votes
1answer
29 views

Set the ClosingSaveDialog to False

I would like to stop Mathematica from showing the "Save Changes To" dialog whenever I try to close a notebook. I tried changing this from the Option Inspector by setting the losingSaveDialog -> False ...
3
votes
1answer
105 views

What is a proper way to represent multidimensional data in TemporalData?

A TemporalData object can host multiple paths or it can admit a ValueDimensions option value greater than unity. In the former ...
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: <...
1
vote
1answer
46 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
2 3 4 5
11