Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

10
votes
1answer
126 views

“ParametricSensitivity” in ParametricNDSolve

"ParametricSensitivity" is listed as a Method in the documentation for ParametricNDSolve, ...
6
votes
3answers
96 views

Monitor the computation only if a certain Option is given to the function

Suppose I have the function heavyFunction[x_]:=Module[{n},Do[Pause[0.1],{n,100}]] representing some complicated and time-demanding computation. I want in some ...
17
votes
2answers
278 views

Where is the old option TraceInternal->True?

Already at least in version 2 (I think), the function Solve calls the function Roots. At that time, I had a rather dirty trick, that still works, to verify this: ...
1
vote
1answer
40 views

How to programatically remove an option for all cells?

I'm trying to remove the CellGroupingRules options in every cell in a notebook. Eventually I opened the Notebook in a text ...
2
votes
1answer
86 views

What Method values are available for Plot?

The Documentation Center article on Plot notes under Details and Options that Method is one of the options for ...
0
votes
1answer
83 views

Overriding the behavior of Dot

I would like to override the behavior of Dot, so that Dot[u,v] will return a scalar instead of a 1x1 matrix in the case that the ...
6
votes
1answer
882 views

Which methods are available for NMinimize?

I can't find in the documentation the list of methods available to NMinimize[]. Is there a way to get this? The NMinimize page in Documentation Center mentions only ...
13
votes
0answers
216 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.2 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...
1
vote
1answer
38 views

Using the Menu Color Palette in Plot Specifications [duplicate]

The color palette is accessible in various menus, (Format -> Text Color -> Palette) or by right-clicking the cell & (Cell Background -> Palette). I would like to use that palette to define colors ...
9
votes
1answer
155 views

When to use GenerateConditions -> True

Many functions, usuallly those involving integration, take a GenerateConditions option which often defaults to False, or at ...
5
votes
2answers
106 views

How to specify and use nested options for a function?

I want to write a function that takes options that are nested. For example, suppose the function has one main option, "method" which can take two values, "a" and "b". Also, when method is "a", it can ...
12
votes
1answer
251 views

AbsoluteOptions prints error messages in V10

Bug introduced in 10.0.0 and fixed in 10.0.2 I am trying to use AbsoluteOptions in V10 but I am getting the Out with some errors as see in this picture: does anyone have same issue?
0
votes
0answers
22 views

How to prevent Mathematica 10 from instantly displaying hover menus? [duplicate]

I recently updated to Mathematica 10 in the hopes to get the most up to date function definitions and run time optimizations. Alas, along with the (hopefully significant) improvements (not so sure ...
14
votes
1answer
197 views

Why are some option values symbols, other strings?

Is there a rationale, beyond historical accident, why some Mathematica option values are strings, while others are symbols? It seems natural that some value spaces, e.g. named color schemes, are so ...
6
votes
2answers
210 views

Mathematica 10, Show, and PlotRange

I have recently moved from Mathematica 8 to Mathematica 10, however I'm having a problem with PlotRange->All in combination with Show[]. For example, ...
2
votes
2answers
80 views

Options for a function I define that can be passed to functions I call in the definition

I know, this is very close to Functions with Options and/or Function with custom Options and modified Options for built-in Symbols, but I don't get it. My function looks like this one: ...
6
votes
0answers
44 views

Override a PlotTheme element at the Options level?

Plot properties defined in a Theme override (supersede) properties defined on Options. This can be undesirable in a case such as: ...
14
votes
1answer
271 views

What Method options does FindInstance accept?

While answering Trouble getting FindInstance to return multiple results for certain constraints it became clear that for this problem FindInstance would be better ...
6
votes
2answers
782 views

Evaluating an If condition to yield True/False

I would like to decide whether an option passed to my custom function has the value Automatic or something else. This is my attempt: ...
0
votes
1answer
82 views

Variable ViewPoint coordinates [duplicate]

Can I use the option ViewPoint on Graphics3D[], with its setting a variable function? For example: ...
6
votes
3answers
429 views

How to preserve clipping when exporting a framed histogram with font embedding?

I work with histograms and would like to export it to EPS format. I've noticed that my exported image loses the PlotRangeClipping option that I set up when I export the plot. This is true for at least ...
8
votes
2answers
145 views

SetOptions for CoordinatesToolOptions for DateListPlot?

Bug introduced in 10.0 and persisting through 10.2.0 or later DateListPlot does not respect my Options setting for ...
3
votes
0answers
46 views

String option names for Cells

They seem to be correctly interpreted. I'm asking because of some minor reasons and a major one: NotebookWrite a Cell with WholeCellGroupOpener option I don't know any official confirmation so let ...
3
votes
1answer
51 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 ...
1
vote
2answers
54 views

Specifying the PlotRange according to a desired center

I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...
5
votes
1answer
139 views

How to check the option value?

Given that I have a function func as follow: To check the value of options, I using the step-by-step method If[] ...
20
votes
1answer
305 views

New behavior of PlotRange in Mathematica 10

In Mathematica 10, when I plot data that has small changes around some non-zero value, the plot chooses a PlotRange that "collapses" the data so that the variations ...
3
votes
3answers
80 views

Orderless storage of tabulated function values

I would like to elaborate on my previous question Function of arguments given in non-fixed order and a relevant related one Best practice of passing a large number of parameters to functions I find ...
3
votes
1answer
564 views

Methods for NSolve

I've been using NSolve a moderate (50-100 equations) size system of linear equations and it has been working splendidly (Solve ...
2
votes
1answer
52 views

Plot does not take range with OptionValue and PlotRange option

I am making a function that is to use Show to overlay a few plots of a function. I want the first Plot in ...
3
votes
1answer
75 views

How do I color Riemann integral rectangles using conditionals?

I'm builind a function to visualize the Riemann Integration process to any function using rectangles. Everything is fine, except that I need the color of the rectangles to change if they're under the ...
5
votes
1answer
124 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, ...
0
votes
0answers
29 views

Reset Options to Default [duplicate]

It is straightforward to set the options of a given predefined function. E.g., SetOptions[ Interpolation, InterpolationOrder->1] I would like to know if there ...
6
votes
3answers
397 views

How to disable differential styles/markers/etc. for multiple entities?

For functions that can produce multiple "style-able" entities, Mathematica by default will give each such entity a different style. Similar conventions apply to other features, either by default, or ...
8
votes
1answer
1k views

Controlling the time step in NDSolve?

I generally use NDSolve for stiff non linear partial differential equations of 4th order. I find that a BDF1 method generally does well to placate my beast of a PDE. I've also tried out ...
7
votes
1answer
83 views

Way to add a same option to multiple functions

Just wanna figure out if there is a decent way to add a same option to multiple functions simultaneously. For example I have a series of SoundNote: ...
6
votes
0answers
65 views

NotebookWrite a Cell with WholeCellGroupOpener option

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
41
votes
3answers
3k views

How to find out which method Mathematica selected?

There are commands like NonlinearModelFit[] or NDSolve[] that have the option Method it ...
1
vote
0answers
46 views

How to replicate drawing applications' Quad-View playing with MatrixView?

I'm having trouble in figure out how to set the ViewMatrix in order to replicate the Quad-View that is available in drawing applications such as Blender. In these packages, if I drag the point of ...
1
vote
1answer
32 views

How to unset an notebook option programmatically?

This question is related, but not identical, to this one. Suppose one sets a notebook option like this SetOptions[EvaluationNotebook[], Foo->Bar]; ...and ...
9
votes
0answers
99 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: ...
11
votes
3answers
1k 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: ...
6
votes
0answers
112 views

ShowSelection color

The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells. ...
10
votes
1answer
235 views

How can I make FilledCurve smoother?

In How can I generate and randomly assign color to annular sectors? J.M. showed an interesting way to create a sector graphic using FilledCurve. Unfortunately it ...
14
votes
2answers
465 views

Determining the default Method used in optimization and root-finding algorithms

Is it possible to extract the Method which is used in functions like NMinimize, FindRoot, ...
6
votes
1answer
261 views

Compiling a function that takes lots of optional arguments

I have a function that takes lots of optional arguments (basically some design parameters, about 10 of them) and performs some basic algebraic calculations involving complex numbers with the options. ...
6
votes
2answers
151 views

What does the AspectRatio option actually do?

The Documentation for AspectRatio on its first line under the "Details" section states: "AspectRatio determines the scaling for ...
4
votes
1answer
106 views

AspectRatio option works unpredictably?

Let us examine the agreement between specified value for the AspectRatio option and the actual aspect ratio of generated plot. For this purpose I define a function ...
8
votes
1answer
180 views

Possible Method for MatrixExp

Well, probably a hard question, but I think it's better to cry out loud :). I noticed that MatrixExp owns Method option when ...