Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

4
votes
1answer
75 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
964 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
29 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
24 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
121 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
107 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 ...
1
vote
2answers
67 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
82 views
25
votes
3answers
706 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
70 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
74 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 ...
10
votes
1answer
152 views

Option Lighting in the Show function does not work

Bug introduced in 11.2 or earlier and persisting through 11.3 There are something wrong when I try to evaluate the example from Lighting Docs, here is the code: <...
6
votes
1answer
681 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
38 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: ...
2
votes
1answer
29 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
167 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
129 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 ...
0
votes
3answers
95 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
682 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
329 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
44 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. ...
0
votes
0answers
39 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
560 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
62 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
91 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
423 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
54 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. ...
3
votes
1answer
79 views

RegionFunction doesn't work in ListContourPlot if also using ScalingFunctions

I am making a contour plot out of a list of values of the form {{x1,y1,f1},{x2,y2,f2},…} I want to plot this on a log log scale so I specify ...
4
votes
1answer
53 views

AccuracyGoal & PrecisionGoal: how to know which was used to yield the result?

With NMinimize (or many other functions), when an answer is found without any warnings, this means that a certain convergence criterium was achieved. It could be ...
2
votes
2answers
45 views

SearchPoints -> Automatic within DifferentialEvolution: what's its meaning?

A simple question: what is the meaning of the standard option (Automatic) for SearchPoints within the ...
4
votes
1answer
53 views

InputField of size that fits the content

I'd like to have an InputField that adjusts its size to the content. I can't make ImageSize->{All, All} or anything similar ...
8
votes
0answers
92 views

What is the philosophy behind \[Rule] (a.k.a. `->`) for assigning options?

Today I was banging my head against my desk when I realized that the problem I was experiencing was due to having typed ImageSize[Large] instead of ...
1
vote
1answer
51 views

What purpose does using None in BarChart's ChartLabels option serve?

I am wondering how to describe the reasoning behind the None setting in ChartLabels to label a group of data. It's a very common way of using a bar chart but it ...
8
votes
1answer
299 views

What are the arguments supplied to ColorFunction in MandelbrotSetPlot?

On the document of MandelbrotSetPlot, it said: With ColorFunction->f, where f is a function, the argument of f is a real number in proportional to the number of ...
3
votes
1answer
80 views

Application example of RuleDelayed in options

In this question: Options which require RuleDelayed , an example was given, where the an option has to be given as a RuleDelayed: ...
0
votes
0answers
70 views

RegionFunction parametric or piecewise definition

Hi I want to plot a contourplot of a given surface over an specific region only. I have used the RegionFunction option for it. Now the problem is that the regions I need to plot are defined by ...
2
votes
0answers
49 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
1answer
54 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[...
3
votes
1answer
54 views

Matching Aspect Ratios between two GeoGraphics with Entities for GeoRange

I'm making a basic 50-state map of population (using a log scale). Given the usual crucible of figuring out what to do with Hawaii and Alaska, I thought I would make the same ...
11
votes
1answer
123 views

Creating notebooks with specific options being editable but not saveable

The goal To create a notebook whose options, when the notebook is opened, are fixed regardless of edits done to the notebook. E.g. WindowSize -> Automatic and <...
4
votes
0answers
52 views

What is the default method of FindClusters?

I used Method -> Automatic on FindClusters and obtain a cluster autoCts as below:- ...
12
votes
4answers
297 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: ...
6
votes
1answer
109 views

Passing options to GraphicsRow

I'm trying to pass the options to a simple function based on GraphicsRow as in the example below, but I get a long list of errors. ...
8
votes
1answer
116 views

Exclude inactived functions from DifferentiationOptions

The list of functions provided in SystemOptions["DifferentiationOptions" -> "ExcludedFunctions"] show which symbols will not be touched by ...
3
votes
1answer
59 views

Manipulate's LocalizeVariables and initial values of variables

Manipulate[a, {{a, 0.25, "label"}, 0, 1}, LocalizeVariables -> False] The initial value is then set to 0. On the other hand,...
4
votes
2answers
66 views

Pure Function passed as an option to a function, which uses other options of the same function as arguments

I am editing my original question, as I have figured out a method of doing what I want. Now my question is if there is a more elegant, efficient way to do the following: ...