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.

9
votes
1answer
113 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: <...
1
vote
1answer
37 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: ...
5
votes
1answer
72 views
2
votes
1answer
28 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
157 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
127 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 ...
2
votes
1answer
40 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
3answers
74 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 ...
0
votes
0answers
36 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 ...
1
vote
0answers
51 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
76 views

Programming a DBSCAN in Mathematica

FindClusters has a built-in Method called "DBSCAN". You can find it on this page: https://...
12
votes
4answers
413 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
49 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
54 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
50 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
41 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
50 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 ...
1
vote
1answer
47 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 ...
3
votes
1answer
77 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: ...
8
votes
0answers
89 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 ...
0
votes
0answers
51 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
48 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
51 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
48 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 ...
4
votes
0answers
39 views

What is the default method of FindClusters?

I used Method -> Automatic on FindClusters and obtain a cluster autoCts as below:- ...
6
votes
1answer
108 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. ...
3
votes
1answer
49 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,...
5
votes
0answers
65 views

OptionsPattern[] Vs. opt___ [closed]

Since version 6 I've been dutifully using OptionsPattern[] instead of the original opts___ for passing options to functions. I ...
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: ...
8
votes
1answer
115 views

Exclude inactived functions from DifferentiationOptions

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

CreateNotebook[“Testing”] writes all TaggingRules to the notebook

Bug introduced in V11.2 or earlier and persisting through V11.3 CASE:4072649 Some of notebook types generate notebooks with TaggingRules for their purposes: <...
8
votes
1answer
51 views

Options of symbols without evaluating them

Try the following on a fresh kernel in 11.3 Options[Unevaluated[Plot]] (* {} *) The problem is that Plot -besides many other ...
5
votes
2answers
56 views

Is there a way to clear all the CellChangeTimes lists in a notebook?

I have a very large notebook that has evolved over years. It is the result of countless copy and paste, edit, divide, merge, etc., operations. Some of the cells have hundreds (thousands?) of ...
0
votes
0answers
21 views

Selectable Epilog in a plot [duplicate]

Can I make an inset graphic added through the Plot option "Epilog" selectable, so that I can fine tune its position in the plot by hand, or is this not possible? If its not does any one have any ...
1
vote
1answer
52 views

Assign Plot options

Is it possible to assign a couple of Plot options like e.g. Frame -> True, PlotRange -> All, ImageSize -> 500 to a ...
0
votes
0answers
57 views

Combining options [duplicate]

Consider the function fTest[b_] := Plot[a Sin[x] + b ,{x, -4, 4}], where a is some real constant. I can set some standard ...
8
votes
2answers
384 views

Are Mathematica commands always supposed to check that Method -> name is valid?

When calling a Mathematica command which accepts a Method -> name option, I always thought that if the name given is not a ...
3
votes
2answers
76 views

Automatically extend ChoiceDialog

Writing: ChoiceDialog["I dati sui nodi sono già stati inseriti?", {sì -> 0, no -> 1}, Magnification -> 1.5] I get: while ...
1
vote
0answers
37 views

What does the option Method->Method in NIntegrate mean? [closed]

Among options for NIntegrate one finds the following construction Method->{name1, Method->name2}. For example, ...
4
votes
1answer
53 views

How to specify radius for “MeanShift” Method of FindClusters

I would like to specify the radius used for the "MeanShift" Method of FindClusters. Where ...
3
votes
1answer
388 views

How to Convert Mathematica Notebooks to PDF's?

My book is done. I'm left with twenty seven (27) Mathematica Notebooks (.nb's) How do I convert these notebooks to the pdf format? How do I combine all twenty seven (27) pdfs into a single pdf? Thanks ...
2
votes
2answers
197 views

How can I improve the smoothness of my NDSolve solution?

This will, unfortunately, be a broader question than I prefer, but I do have a concrete example. I simulate many oscillatory systems with NDSolve. For short simulation times, the result is generally ...
0
votes
0answers
40 views

Expression to disable internet to speed up Quantity

There's a way to disable internet or WolframAlpha connectivity. I know Quantity caches unit lookups, but I have reasons that I need to disable internet connectivity. Can someone help me with that ...
8
votes
2answers
84 views

Automatically adjusted ImageSize across a column

Button has this nice property that all Buttons in e.g. a Column will span to the size of the ...
5
votes
1answer
84 views

Is Depth[x, Heads->True] historical?

I randomly found that Depth has a boolean option called Heads: ...
4
votes
2answers
81 views

Define a 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 ...
10
votes
1answer
116 views

Spelling check for InputField

Is it possible to enable ShowAutoSpellCheck for String InputFields? Similarly to ...
4
votes
2answers
75 views

How to prevent an Optional parameter from taking an OptionsPattern parameter without multiple function definitions? [duplicate]

I have function the needs to enable some Optional parameters and an OptionsPattern. The issue I am facing is that the options ...
5
votes
1answer
144 views

Is it possible to prevent LUDecomposition from pivoting?

By construction, LUDecomposition performs LU-decomposition with pivoting; i.e., with row permutations (otherwise, the decomposition may not exist). Is it possible ...
3
votes
1answer
46 views

Using other functions' replacement rules

I have a module that uses some default options for NDSolve like so ...