Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

2
votes
1answer
165 views

Manipulations with options

I have two functions with options, for example f and g ...
3
votes
2answers
239 views

Handling options in my function [duplicate]

It seems this should be easy, by I just can not figure out how. I'm making many very similar style plots, so I want to make a function with all the default options specified. Sometimes I need to tweak ...
3
votes
2answers
72 views

Setting WholeCellGroupOpener

When I write WholeCellGroupOpener, Mathematica autocompletes it, but it doesn't recognize it (it stays blue instead of turning black). Example: ...
7
votes
1answer
279 views

Triangle that collapse cells

I'm not very good in English , so is hard to explain but how put the triangle in the left that deploy or collapse a group of cells ?
2
votes
0answers
90 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 ...
9
votes
1answer
208 views

Front End options

Inspired by a recent question and others like it, and not finding an existing duplicate, I ask: What is the hierarchy of Front End options? How do they work? How can their values be set and ...
7
votes
1answer
426 views

Can Mathematica check spelling during typing?

I can't see a way to get Mathematica to check my spelling as I type. Is this feature not supported? I've done everything I can think of with my options: Is there a setting I'm missing?
11
votes
2answers
1k views

Labels and tickmarks inside Frame

Is there a way to force Plot and related functions to place the tick labels inside, rather than outside a frame? For example, consider, ...
3
votes
1answer
317 views

Change the height of a function being plotted

How do I alter the height of any function plot using the Plot function? Mathematica seems to limit the height of the plot up to the range of a function and distort ...
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
2answers
732 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 ...
5
votes
1answer
311 views

Default FontFamily for PlotLabel

This is probably a rather basic question and I presume I am simply unable to make proper use of the Options[] function: I am trying to figure out what the default ...
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
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 ...
11
votes
2answers
432 views

Is there a way to programmatically set global preferences?

Can I set global preferences that are accessible via "Edit"->"Preferences" programmatically from within a notebook? As learned from this question, turning off anti-aliasing can make a huge difference ...
2
votes
1answer
45 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 ...
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
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 ...
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 ...
17
votes
2answers
2k views

Arrows on axes in Plot3D

I use the following code to draw Arrows on Axes in 2D graphics: ...
1
vote
1answer
64 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 ...
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 ...
9
votes
3answers
726 views

How do I remove the top bar and bottom bar from the Mathematica window?

Any idea how to remove the top bar saying "Wolfram Mathematica .... Demonstrations MathWorld Studenforum Help" from the Mathematica main window (see screenshot). It has no use to me and it ...
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 ...
8
votes
1answer
177 views

DifferentialEvolution scaling factor randomization

Using NMinimize for finding global minima, one can choose the DifferentialEvolution method. You can find a (not so) detailed ...
10
votes
1answer
116 views

Use EvaluationCompletionAction to notify me only after long evaluation

Is it possible to use the option EvaluationCompletionAction to notify me (e.g. with a Beep[]) when an evaluation that took ...
9
votes
2answers
250 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 ...
11
votes
3answers
727 views

Opening new notebooks with a non-default window size

I'd like to set Mathematica (8.0.4.0) up so it opens new notebooks with the "NaturalColor" stylesheet and with a WindowSize like ...
6
votes
1answer
117 views

Make all new cells have a specific style as a function of the Mathematica installation

I would like all new Input and Output cells, in fact all new cells including section headers and such, to have a specific stylistic property (...
3
votes
1answer
117 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 ...
2
votes
1answer
46 views

combine two definitions into one [closed]

Suppose I have two definitions of a function such as ...
4
votes
1answer
171 views

How to hide inline Cells

By giving a cell the simple option CellOpen -> False, it can be hidden from view. But for inline cells (cell within a cell) this does not work. An option ...
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
123 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 ...
26
votes
3answers
8k views

Is it possible to change the color of plot in Show?

For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
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 ...
119
votes
6answers
4k views

How can one find undocumented options or option values in Mathematica?

Mathematica has a lot of undocumented or poorly documented options. How does one go about working out if there is an undocumented option that might solve a particular problem? How does one work out ...
8
votes
1answer
133 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 ...
5
votes
1answer
376 views

Can BoxWhiskerChart show both the median and outliers at the same time?

Is there an easy way to make BoxWhiskerChart show both the outliers and the median line? g1 below shows outliers but not the ...
2
votes
0answers
47 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: ...
2
votes
2answers
71 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 ...
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 ...