Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
17
votes
1answer
249 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
19 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 ...
3
votes
1answer
54 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
85 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 ...
0
votes
0answers
24 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
27 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
61 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
69 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
24 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 ...
16
votes
1answer
412 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: ...
17
votes
1answer
260 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" ...
0
votes
0answers
39 views

An Elementary Introduction - Problem 22.13 VertexLabels [duplicate]

Problem 22.13 Make raster images of the letters of the alphabet at size 20, then make a graph of the 2 nearest neighbors of each one. My solution ...
1
vote
4answers
87 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
140 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
50 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 ...
10
votes
3answers
195 views

The very bottom of CellMargins is missing

Bug introduced in 8 or earlier and persists through 12.0 Edit 16. IV 2016 I've received an answer from WRI Support: [...] It does appear that CellMargins is not ...
11
votes
1answer
186 views

Option Lighting in the Show function does not work

Bug introduced in 11.2 or earlier and persisting through 12.0 There are something wrong when I try to evaluate the example from Lighting Docs, here is the code: <...
2
votes
1answer
41 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 ...
3
votes
1answer
109 views

Temporarily setting built-in function options at lower levels

Slightly extending rcollyer's handy helper (originally "BlockOptions") to TemporarilySet system function options via an operator ...
23
votes
5answers
2k views

How to get the real PlotRange using AbsoluteOptions?

Bug persisting through version 12.0.0.0 The problem in general involves the unreliable behaviour of AbsoluteOptions when option values are implicitly specified (e....
0
votes
2answers
111 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 ...
4
votes
1answer
87 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 ...
9
votes
2answers
1k views

How to “undo” SetOptions (restore defaults)?

Say I had some good reason to use, for example SetOptions[Plot,ImageSize->500, LabelStyle->OutrageousPink]; But now sometime has passed, life has changed, ...
2
votes
1answer
31 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
33 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
2answers
240 views

Input alias having a place holder which gets selected when the alias is used

If one executes the following code ...
5
votes
1answer
124 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 ...
4
votes
2answers
113 views

Determine the PlotRange of a Graphics object programmatically

Given some graphics expression, I would like to be able to programmatically find its PlotRange in a form of a list containing figures. I just would like to stress ...
0
votes
2answers
84 views

Why are these plots not the same?

I have the following code: ...
26
votes
3answers
756 views

Writing functions with “Method” options

I'd like to implement several behaviors for a particular function using a Method option added to the function definition: ...
5
votes
2answers
86 views

Giving Plot options defined outside of the Plot expression

How can I give Plot formating expressions on a separate line just like ListPlot? When I use the following code with ...
0
votes
1answer
24 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
85 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 ...
6
votes
1answer
738 views

Warnings shows up in message window

I have no idea why, but suddenly all my evaluation with warnings (like Sum::div:Sum does not converge) has begun to show up in a message box. Since always they ...
1
vote
1answer
41 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: ...
17
votes
4answers
4k views

Pass list of options to Plot3D

Consider the example plotOptions = {PlotPoints -> 10, MaxRecursion -> 2} Plot3D[x y , {x, 0, 10}, {y, 0, 10}, plotOptions] Why does this causes the error: ...
5
votes
1answer
82 views
2
votes
1answer
32 views

ColorFunction in SphericalPlot3D fails with ImageValue

I would like to texture and deform a sphere with with images using various mapping functions between x,y and phi,theta. I figure I should start with $f(phi,theta)=(x,y)$ as a test case. However, I ...
5
votes
3answers
171 views

Why are the options given for IconData causing errors when used?

Reported to Wolfram Technical Support [CASE:4212712] Using Options on IconData reveals: ...
3
votes
2answers
135 views

How to make an option immutable

I am writing a package featuring several functions which depend on a large number of parameters. I'm trying to use Options so that I can define default values for ...
1
vote
3answers
171 views

Can `PlotRange` of x-axis automattically determine y range?

PlotRange can specify the plotting range in each direction. Let's say you have a large set of data and you may want to plot parts of it by specifying the ...
10
votes
2answers
706 views

What do the options of SmoothKernelDistribution do?

The function SmoothKernelDistribution has three options that are not described in too much detail in the Mathematica's help window. InterpolationPoints: What is ...
11
votes
2answers
346 views

Setting options of expressions similar to using SetOptions on objects

Introduction I often have the problem that in an expression, I want to change an option. If we are sure the option is not present, we could simply use ...
2
votes
1answer
49 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. ...
1
vote
0answers
52 views

How to call a .nb notebook inside a another notebook [duplicate]

I generally use .m as the file for mathematica. However currently I have started using .nb interface and its looking good. However if I create separate .nb files and try to call/import them inside my ...
13
votes
2answers
573 views

Create new notebook at fixed size

Using Ctrl+n we are effectively doing FrontEndTokenExecute["New"] and, at least on Windows, a new window has a WindowSize equal ...
1
vote
0answers
63 views

Change magnification only for NEW notebooks? [duplicate]

I'm using Mathematica 11.3. In an earlier version, there was, I believe, an option allowing one to change the magnification for new notebooks (created, say, using the menu item File > New or the ...
1
vote
0answers
103 views

Programming a DBSCAN in Mathematica

FindClusters has a built-in Method called "DBSCAN". You can find it on this page: https://...
13
votes
4answers
434 views

Renaming options of custom functions while preserving backwards compatibility

I have a package with many functions. There is an option name that several functions share. I feel that the current name of this option was not the best choice. I would like to rename it, but at the ...
2
votes
1answer
57 views

Automatic space after comma in Code cell style

"Input" cell style automatically inserts a space after each comma, with natural exceptions such as when quotation marks are open. ...