Questions tagged [options]
Questions dealing with optional named arguments of Mathematica functions.
582
questions
1
vote
0
answers
25
views
Strange CandlestickChart EventLabels Behavior When Using Modified Data [closed]
Edit: In attempting to showcase a simplified version of the issue, it seems instead I showcased a syntax error and didn't capture the correct issue.
The code below showcases the issue:
...
4
votes
0
answers
50
views
NMinimize/NMaximize: How to specify additional options to the "PostProcess"->FindMinimum option
I would like to pass FindMinimum Options to the PostProcess Option of NMinimize.
Here is minimal working example of using NMinimize from the documentation at (see tutorial/...
1
vote
1
answer
44
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:
...
7
votes
4
answers
159
views
How to determine the current width of the output cell area?
When answering this question, I suddenly realized that it is surprisingly difficult to determine the current width of the output cell contents.
I tried to employ the ...
15
votes
2
answers
388
views
Is a list of all graph layouts available?
Is a list of all graph layouts available?
For example I want to check all the layouts at once for a specific graph so I'll map this over the list. Of course you can just type the list yourself but ...
4
votes
1
answer
83
views
OptionValue not inserting correct option
I am using OptionsPattern and OptionValue to define some switches for my custom function. Here is a minimal example:
...
2
votes
2
answers
79
views
Disable image resize
Below is a screenshot of mathematica help :
As you see, if I click the image, orange colored frame appears, and we can control its size.
Can we make it impossible to resize an image ?
Probably by ...
2
votes
2
answers
92
views
Plot AspectRatio basic question
When Plotting (using the command Plot), AspectRatio->Automatic means :
The explanation of ...
3
votes
1
answer
101
views
ImageDimensions[Plot[something]] : where does ratio 1.666... come from
From my knowledge, ImageSize is an option that adjust the width of an image.
...
3
votes
0
answers
66
views
Need to confirm bug in Dataset options before I submit report to wolfram
I need to know if I need to submit a bug report. I finally got my HeaderSize the way I want it but I had fudge it. It gives the correct widths but does this look ...
1
vote
1
answer
71
views
Ensure that Options for built-in symbols are the original defaults
I often create symbols (no args) or functions (with args) in which common options (and styles) are set in body and unique opts within args for managing multiple calls to built-in functions. these spit ...
10
votes
1
answer
99
views
How to list all possible string arguments of a specific function?
For example, to learn the function Alphabet, we can read its document. But it's rather ambiguous, like "Some languages have extra properties". How to find ...
1
vote
0
answers
78
views
How to DeleteDuplicates from a list of Rules having set to different values whereby we wish to drop the last occurrence?
About This Function
This will eventually set default values for Options based on the end users preferences so that no OptionsPattern need ever be set. The symbol<...
2
votes
1
answer
144
views
A question related to the usage of LegendLayout -> {"Row", 1}
I saw this piece of code from an answer by @Syed here.
...
6
votes
2
answers
219
views
RegionPlot is slow to plot a simple region
I start out with 5x5 matrix gCorrMatrix[g] depending on a parameter $g$ and an unknown $W_2$
...
0
votes
0
answers
30
views
Having Difficulty getting heading and data alignments to behave in a custom themed DataSet?
I'm actually quite competent when applying Option Style-s to almost any output so it puzzles me that everything I tried only ...
2
votes
2
answers
196
views
Why does this PhaseRange not work?
Any idea why this PhaseRange does not work?
BodePlot[-(1/(s + 1000)), PlotLayout -> "Phase",
PhaseRange -> {0, 2 \[Pi]}]
4
votes
1
answer
89
views
How to use the option ExternalForce in NBodySimulation
I want to simulate the movement of a small ball on a curved track like the following:
This is my current code:
...
3
votes
1
answer
92
views
Determining the Method Chosen When an Option is Set to Automatic
Many Mathematica functions with multiple methods have an option where the method is set to Automatic. Is it possible to have these functions output what method they choose. For example, if I'm using ...
1
vote
1
answer
102
views
Different behaviour of margins from version 11 to 13
Testing some "11" code on version "13" I noticed an unpleasant difference: the borders of a graph are handled differently.
A simple piece of code that reproduces the problem is
<...
3
votes
1
answer
67
views
How to simplify list of Graphics options?
When looking at the internals of graphics expressions we often see that some options like PlotRange, Frame, ...
1
vote
1
answer
63
views
Propper way of getting rid of FilterRules statements when passing options?
When passing options from a function f to a function g in the body of f one can use the <...
0
votes
0
answers
68
views
How can I change the derivative symbol ' in output
The derivative symbol in "output" is always like this f'(x) but I want something like D[f[x],x] or ...
5
votes
1
answer
101
views
Adding logging functionallity in package
I build a package with code to solve specific equations. The code has become quite complex and so to convince myself (and others) that it works correctly I would like to add some code to write ...
1
vote
1
answer
51
views
Labels in DateListPlot not visible
The problem: I combine two lists in one DateListPlot. The first list has labels. When I combine both in one DateListPlot, some ...
0
votes
0
answers
32
views
how to record the viewpoint and viewvertical when using Manipulate Bookmarks?
I learnt from a relevant question that we can click on the plus sign of the Manipulate output, and choose "Add to Bookmarks" to store different set of values of controls, so that one can ...
1
vote
1
answer
119
views
Condition (/;) not working correctly on a function with optional arguments and options
I have read this post: How to avoid collision between optional arguments and options, and use Mr.Wizard's method to solve this problem. But when I add conditions to optional arguments, it seems that ...
0
votes
0
answers
26
views
Overriding default value of inheritied option as per passed options
Consider the following example that shows the spirit of my problem:
...
5
votes
1
answer
86
views
SetOptions not persistent between sessions
Let's say I decide I want all my axes to be colored red, so I do
SetOptions[Plot,AxesStyle->Red]
For the remainder of my session, I correctly get
...
1
vote
1
answer
67
views
Supplying options with an association [closed]
Let's say I have an association, like {"PlotStyle" -> Red}, and I want to use it to supply options to a function, such as ...
1
vote
1
answer
83
views
Globally set a time constraint for simplifications
I am using a differential geometry package (the now discontinued Atlas) which repeatedly calls the Simplify functions in its computations, which in some cases leads to extremely long (days? In the end ...
1
vote
0
answers
15
views
How to Dynamically update CellFrame around 1, 2 or more cells of the same style (Looking for a Stylesheet Solution)
The following "Theorem" cellstyle in defined in my private stylesheet
...
1
vote
0
answers
112
views
How to make a function ignore an argument [closed]
Motivation
I am trying to call a function f, that has either 1 or 2 (or multiple) parameters, from a function g that uses ...
0
votes
0
answers
46
views
Graphics3D default properties? [duplicate]
I realized that it is impossible to reproduce default sphere only by declaring its color.
...
3
votes
1
answer
136
views
Extracting Lighting specs used in a Graphics3D object
I'm getting a plot which is mostly fine with Lighting->Automatic, but a bit too dark. How do I go about getting the Lighting specification used in the plot so I ...
1
vote
0
answers
60
views
Rule Precedence
Do I understand the following correct ($R$ on-the-fly executable rules, $E$ expressions)? I assume MATHEMATICA uses an unification algorithm like I learnt it for e.g. PROLOG.
If $R_1$ was defined ...
0
votes
0
answers
44
views
How to have Mathematica showing a dropdown list after entering an option and the -> in a function argument [duplicate]
When I enter
Plot[Sin[x], {x, 0, 2 Pi}]
Mathematica returns, as expected, the expected Sinus wave of one period.
Plot has many, many options, when I enter:
...
7
votes
0
answers
69
views
Why does Longest not work on OptionsPattern?
When having a function with optional arguments and options, I frequently find myself writing something like this:
...
4
votes
0
answers
50
views
What are the valid options for the "ParametricCaching" option in ParametricNDSolve?
I am using ParametricNDSolve as part of the calculation of an objective function for an optimization, so I am trying to strike a balance between memory usage and ...
0
votes
0
answers
54
views
How to make a better self-closing toolbar button that always works?
My DockedCellstoolbar has a self-closing button that sometimes decides to permanently stop working on that particular notebook. closing and reopening file always ...
1
vote
1
answer
31
views
Saving function evaluations to DownValues for function with options
I have a time-intensive function with options that I would like to not evaluate more than necessary.
...
8
votes
1
answer
148
views
OptionValue doesn't work if a local variable has the same name as the function itself
The following innocent-looking code results in error.
...
4
votes
1
answer
75
views
Refer to OptionValue externally without a specific function name
I want to refer to the actual option values of a function f outside of f, using OptionValue. ...
0
votes
0
answers
114
views
Short forms for function-parameter combinations?
I find these to be very convenient, particularly since I use the base-10 log fairly frequently:
Log[2, n]=> Log2@n
...
0
votes
1
answer
86
views
Why does ButtonBar ignore Background option and is it possible to color the actual face of the buttons in a ButtonBar?
Notice how I have Background->color set in each BUttonBarbut it is completely ignored. How do I fix this?
Edit:
(1) Bob ...
1
vote
2
answers
110
views
How can I change the default color of the basic geometric regions in 2D?
I like to use the basic geometric regions in Mathematica, like Parallelogram[...], Rectangle[...], ...
9
votes
0
answers
185
views
Default window size too small in version 12.3 (in Windows 10)
After starting Mathematica 12.3, the default window size is like this, it's too small for me, I don’t want to manually drag the window every time. I have tried this,
...
2
votes
0
answers
45
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 ...
0
votes
2
answers
126
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?
0
votes
1
answer
53
views
Restore messages function to the default ones
Times ago I used the command Off[NDSolve::tag].
Now I've been forgetting which message I removed and I would like to restore it.
Someone knows if is there a way to reset all the default messages ?