Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

4
votes
1answer
82 views

How do I change one edge in a tree graph to a double arrow?

I use the following code plot a binary tree and wants to change an edge to double arrow. ...
3
votes
1answer
41 views

Edit DensityPlot after creation [closed]

My question is similar to this question, of which I have found the solution here. The solution enables me to edit a Plot after it has been drawn, so that Mathematica doesn't have to compute everything ...
3
votes
2answers
92 views

CDF format - disable cell selection?

Is there any way/option in order to make Cells not selectable in exported CDF files? I know how to hide the cells until you go with the mouse over them on the ...
7
votes
2answers
135 views

Option inheritance: setting new defaults and private context

I'm having issues with inherited options for functions I defined in a package file. Setting new default options doesn't quite work as I expect. Also, a function which I'd like to stay private to the ...
7
votes
1answer
190 views

Methods Available for Derivative Pricing in Mathematica?

I am using Mathematica to price options (built in functions, no need to reinvent the wheel, right?). In the documentation, the Binomial method is used as an example of specifying a non-standard ...
2
votes
0answers
54 views

Problem with exporting plot data into .txt: not whole range is exported [closed]

I need to export my data into a .txt document to import it in $\LaTeX$. For a given M, I used the follow code to export: ...
0
votes
0answers
49 views

SetOption for Plot

I have a very related question to my former one SetOption for plotting and I am not sure if I should edit it in order to ask two questions. So if one of the experienced users tells me to do so, I will ...
8
votes
1answer
148 views

SyntaxInformation: take allowed options from multiple symbols – possible?

Suppose I have a function like Options[f] = {foo -> 1}; f[opt : OptionsPattern[{f,g}]] := h@g[Sequence @@ FilterRules[{opt}, Options[g]]] I purposefully do ...
4
votes
0answers
88 views

AbsoluteOptions doesn't return correct option value of Ticks? [duplicate]

I just come across a function called AbsoluteOptions when trying to figure out the specific option value of ...
3
votes
1answer
52 views

TreePlot: arrows on specific lines

I have the following list of rules: L={1->2,2->3,3->3}; and I want to plot a tree graph: ...
3
votes
1answer
51 views

Specifically retrieving all “non-default” option values from the Options Inspector

Recently Mathematica broke on me and I had to reinstall. I lost all of the changes I've made in my Options Inspector over the past year and am attempting to go back and change them again by memory. ...
2
votes
0answers
56 views

SetSystemOptions is obsolete? What is next? [closed]

When running the following code on Mathematica 10.2 SetSystemOptions[ "CompileOptions" -> "CompileReportExternal" -> True]; I received the message: ...
2
votes
1answer
81 views

SetOption for plotting [duplicate]

I want to change the default of ListLinePlot to use the scientific PlotTheme with a grid ...
2
votes
1answer
50 views

Determining Automatic Parameters used by Mathematica [duplicate]

When you use plotting functions like ContourPlot3D, there are lots of parameters that are left as Automatic if you do not ...
6
votes
2answers
210 views

How to check the validity of the value of PlotStyle option for 2D graph?

For the 2D graphic function like Plot, ParametricPlot, etc, which own a option PlotStyle. For instance, ...
1
vote
1answer
38 views

BubbleChart ignores Ticks option [closed]

BubbleChart does not display ticks to the Ticks option specs. ...
4
votes
1answer
43 views

Make Rasterize/Export use Notebook-specific options?

Sometimes I need Notebook-specific options such as Background color or FontProperties -> "ScreenResolution". (Ref: How to ...
3
votes
0answers
38 views

NotebookAutoSave -> True “partially” working?

I am a novice to Mathematica (using v10.2) and was wondering why: SetOptions[SelectedNotebook[], NotebookAutoSave -> True] does not switch on ...
6
votes
3answers
116 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 ...
2
votes
1answer
48 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
116 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
90 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 ...
12
votes
1answer
188 views

“ParametricSensitivity” in ParametricNDSolve

"ParametricSensitivity" is listed as a Method in the documentation for ParametricNDSolve, ...
1
vote
1answer
57 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 ...
6
votes
2answers
154 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 ...
0
votes
0answers
23 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 ...
7
votes
2answers
528 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
92 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: ...
7
votes
0answers
81 views

Override a PlotTheme element at the Options level?

Edit: I am still using version 10.1; has anything changed by 10.4.1? Plot properties defined in a Theme override (supersede) properties defined on Options. This ...
4
votes
0answers
63 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
60 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
58 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 ...
20
votes
1answer
329 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 ...
2
votes
2answers
74 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
134 views

How do I color Riemann integral rectangles using conditionals?

I'm building a function to visualize the Riemann integration process for any function using rectangles. Everything is fine, except that I need the color of the rectangles to change if they're under ...
0
votes
0answers
30 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
1answer
214 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[] ...
4
votes
0answers
40 views

SetOptions does not give expected result with Grid [duplicate]

Chech this example: ...
7
votes
1answer
105 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: ...
7
votes
0answers
86 views

NotebookWrite a Cell with WholeCellGroupOpener option [duplicate]

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
1
vote
1answer
69 views

Narrow a Drawing Tools Window

I used the Graphics->New Graphic, then the Drawing Tools to create this in my notebook. Now, you can see that there is ...
1
vote
0answers
50 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 ...
3
votes
1answer
54 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
142 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: ...
3
votes
3answers
84 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 ...
0
votes
1answer
95 views

Variable ViewPoint coordinates [duplicate]

Can I use the option ViewPoint on Graphics3D[], with its setting a variable function? For example: ...
11
votes
1answer
262 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 ...
6
votes
1answer
309 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. ...
7
votes
2answers
190 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
124 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 ...