Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

3
votes
2answers
69 views

Setting WholeCellGroupOpener

When I write WholeCellGroupOpener, Mathematica autocompletes it, but it doesn't recognize it (it stays blue instead of turning black). Example: ...
3
votes
2answers
224 views

Handling options in my function

It seems this should be easy, by I just can not figure out how. I want to have a function that I can pass a list of options to, or use a default. I have found two very similar questions, but I can't ...
2
votes
0answers
88 views

What is recommended way to define my function option

In Mathematica 5.x days many packages used the following standard mechanism to read option values ...
2
votes
1answer
149 views

Manipulations with options

I have two functions with options, for example f and g ...
1
vote
1answer
74 views

What is the fundamental difference between “PlotPoints” and “MaxRecursion”?

When making a plot, PlotPoints or MaxRecursion options are used to specify the accuracy or the extent of how detailed the result will be. Ff either of them do the similar job, I think ...
4
votes
2answers
102 views

Extracting Color Options from BarChart

I would like to extract the colors (i.e., obtain RGBColor[] or other full specification) of the different colors used in a bar chart such as this ...
1
vote
1answer
37 views

Histogram “PDF” - Workaround for chopped y axis [closed]

My question is about finding a workaround and/or setting of parameters for a problem with the Histogram function and the "PDF" option. This problem occurs when I use Mathematica (Wolfram Cloud ...
3
votes
0answers
81 views
1
vote
0answers
43 views

Why isn't Options[] finding all options? [closed]

I've created a plot with 3 non default options. See below. I would like to list these options using the Option[] function. When calling Options on the the plot, ...
3
votes
1answer
81 views

How to prevent an option from being displayed by Options?

Options[image] This gives a list: ...
1
vote
1answer
39 views

Using a prompt to set options

I am creating a toolbar. One of the buttons on my toolbar is this setcounter button below. ...
7
votes
1answer
107 views

Programming scripts to create and modify stylesheets: problems with contexts

I am trying to emulate the shift and shift+tab feature in the Outline.nb stylesheet that comes with Mathematica. I added the following code to a private ...
2
votes
1answer
44 views

Adding headers and/or footers to a stylesheet

I would like to push a common header(file name and page number) across multiple notebooks using one Stylesheet. I know I can use the header/footer dialog on each notebook individually but this is ...
4
votes
0answers
48 views

How to know the string data/settings, of some options/functions

It is known that several functions and options take some sort of input in this form: option->"something" function["something"] The simple example for this is ...
6
votes
2answers
61 views

How to specify custom graph styles for `GraphStyle`?

There is a way to specify custom themes for plots (Is it possible to define a new PlotTheme?), but themes to not apply to Graph objects, not even to ...
4
votes
1answer
60 views

How to have Tooltip resize with Notebook magnification?

How do you make a Tooltip label expression change magnification when the Notebook magnification changes. The expr of ...
2
votes
3answers
83 views

Changing options inside a function

I would like to make a function that can perform checks on its option values, and resets them to legal values if necessary. The option should still be accessible using OptionValue. I am looking for a ...
3
votes
3answers
118 views

Making a Button smaller in width

I can't seem to figure out how to make the width of a Button smaller. I tried change the first 26 below to a number like 10. But it doesn't seem to effect the ...
3
votes
1answer
99 views

How to check and reset the boolean value of many options one times?

I defined a function which owns many options. In addtion, these options have a common characteristic. Namely, only accepting boolean value True or ...
9
votes
2answers
249 views

Create new notebook at fixed size

Using Ctrl+n we are effectively doing FrontEndTokenExecute["New"] and, at least on Windows, new window has WindowSize equal to ...
2
votes
1answer
46 views

combine two definitions into one [closed]

Suppose I have two definitions of a function such as ...
4
votes
1answer
78 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
40 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
75 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
122 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
158 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
46 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
43 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
131 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
83 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
44 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
46 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
51 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
76 views

SetOption for plotting [duplicate]

I want to change the default of ListLinePlot to use the scientific PlotTheme with a grid ...
2
votes
1answer
49 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
208 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
33 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
33 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
115 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
47 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
103 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
86 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
162 views

“ParametricSensitivity” in ParametricNDSolve

"ParametricSensitivity" is listed as a Method in the documentation for ParametricNDSolve, ...
1
vote
1answer
54 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 ...
5
votes
2answers
133 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
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 ...
7
votes
2answers
399 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
89 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
55 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: ...