Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

4
votes
0answers
158 views

The guidelines for options or multiple arguments?

Where can I find some references concerning when to use options and when to use multiple arguments in designing and writing functions? Seems most built-in functions have arguments less than 3 and ...
3
votes
0answers
77 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 (...
2
votes
1answer
260 views

How do you adjust tick direction on a 3d plot?

I have a 3d plot with oddly angled tick marks. Whether it's due to the viewing angle being unexpected or some other reason, the tick marks on the bottom axes are angled up along the sides rather than ...
3
votes
2answers
79 views

Manipulation of Automatic settings in a given case

Often I use the Automatic option to specify plot styles, plot ranges, image sizes, etc. I'd like to be able to apply some modifications to these automatically ...
1
vote
0answers
139 views

How to get all possible Rules and Elements of Functions like ExportString

Here are some $ExportFormats. I'd like to know which one has some options or elements of Import and Export. ...
4
votes
1answer
94 views

warnings shows up in message window

I have no idea why, but suddenly all my evaluation with warnings like "sum does not converge" has begun to show up in a message box. Since always they appeared between In[] and Out[]? How do I make ...
5
votes
1answer
138 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 ...
13
votes
3answers
221 views

Options which require RuleDelayed

For some functions in Mathematica it is important to use RuleDelayed. One prominent example is the EvaluationMonitor for ...
6
votes
2answers
247 views

How to show wireframes on imported Object / Mesh (.obj file)

I've managed to import a Wavefront (.obj) file and store it in a variable like so: ...
8
votes
1answer
115 views

Creating a NearestFunction that returns an index

I use Nearest repeatedly for large data sets. For example pts = RandomReal[{-1, 1}, {1000, 3}]; Nearest[pts, {0, 0, 0}] I ...
1
vote
2answers
307 views

Reversing the ColorScheme used in an ArrayPlot and setting the font size in the color bar

I have a matrix of data that I am plotting via ArrayPlot. ...
5
votes
0answers
78 views

ShowSelection color

The color of a selection is controlled by the operating system. E.g., enter the following code in separate cells. ...
11
votes
3answers
254 views

Pass by reference for an option argument

Pass by reference can be faked by using HoldAll or something similar in the definition of a "Function". But can pass by reference be faked for symbols passed as ...
2
votes
1answer
166 views

Reuse ParametricPlot3D plotting options [duplicate]

I create several ParametricPlot3D's that all should look the same: BoundaryStyle -> Thick, ...
2
votes
2answers
125 views

How to find out if invisible notebooks are still open

If I create a notebook CreateDocument and I set options such that Visible -> False, is there any way to tell if it's still ...
9
votes
1answer
117 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 ...
0
votes
1answer
325 views

Is it possible to modify the tick marks in BarChart plot?

I need to specify the length of the tick marks on the x axis in a BarChart plot: ...
2
votes
1answer
168 views

Can we give Mathematica hints for symbolic sums and products?

I have this question at MO and I would like to know if we can give hints to get the symbolic sums and products to come out as $\frac{6}{\pi^{2}}\pm\epsilon$ instead of $0.60792710...$ accurate to ...
0
votes
0answers
29 views

Define a Plot3D function with custom options [duplicate]

I am trying to define a Plot3D function with custom options, following (this previous SE question), but I'm running into a brick wall. I've narrowed the problem to the following 'toy' code: ...
8
votes
1answer
182 views

How can I add a background to a stylesheet?

In version 9 we can set the background to an image, however I'd like to save this into a stylesheet that can be installed.
11
votes
2answers
206 views

Function with custom Options and modified Options for built-in Symbols

I couldn't find a more descriptive title, but I guess an example will explain my problem. I set up some customized Grid function including some additional ...
12
votes
1answer
147 views

How do I get a list of allowed values for an option?

When using Mathematica how can I get a list of the allowed values of an option? As an example I can use the Options command as follows - ...
8
votes
2answers
203 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 ...
8
votes
2answers
254 views

How can automatic ticks be made “outie”?

By default, FrameTicks stick into the data area in a way that is sometimes uncomfortable. ...
20
votes
2answers
289 views

Evaluation of OptionValue[]

I have a function that takes an OptionsPattern and I want to access several options, say a, and ...
15
votes
3answers
551 views

How to get the real PlotRange using AbsoluteOptions?

The problem in general involves the unreliable behaviour of AbsoluteOptions when option values are implicitly specified (e.g. ...
14
votes
2answers
284 views

Why doesn't Mathematica use uniform criteria for validating Options?

Plot[Sin[x], {x, 0, 1}, pp -> 0] Gives as expected: Plot::optx: Unknown option pp in Plot[Sin[x],{x,0,1},pp->0]. >> However: ...
2
votes
0answers
86 views

How can this function's options be used in different places?

I wrote this function to make a ListPlot where the points are colored by a third argument. ...
26
votes
1answer
294 views

Quickly look-up usages, options and attributes of symbols

When I'm writing code in the front-end, I find myself very often looking up the list of options of a symbol over and over again in the documentation center. In most cases you find there a list of ...
1
vote
2answers
184 views

Filling for ListPolarPlot

I want to use Filling for ListPolarPlot in such a way that the points in the list are joined to the origin with a line colored ...
9
votes
2answers
422 views

Solving/Reducing equations in $\mathbb{Z}/p\mathbb{Z}$

I was trying to find all the numbers $n$ for which $2^n=n\mod 10^k$ using Mathematica. My first try: Reduce[2^n == n, n, Modulus -> 100] However, I receive ...
3
votes
0answers
100 views

How do I add options to a built in function, which only apply to a certain class of argument?

I'd like to add an option to a built-in function that only applies when it is given an argument of a certain form. For example, something like this approach to extending ...
5
votes
2answers
151 views

How is OptionsPattern[] defined? Can I replicate this?

I am writing several functions which all take similar input parameters (a complicated nested list structure). Is there some way for me to define a pattern that can be used in multiple places and ...
9
votes
1answer
189 views

Pass Options to Export[]

I'm working with Options to change the look and feel of some generated Graphics by passing Options to several functions, one of them being Export[]. For example if ...
3
votes
1answer
111 views

How to grab CellTags from a Cell?

I am in the process of creating a palette for a specialised "Save as HTML". For context please see this. How can I grab the CellTags from a Cell[...] object? This is my first iteration, aka testing ...
1
vote
1answer
107 views

How do I find the value of specific printing options?

I'd like to programmatically save (and then temporarily change and restore) specific printing options. I get as far as Options[Notebook, PrintingOptions] but ...
4
votes
1answer
236 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?
9
votes
2answers
299 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, ...
4
votes
1answer
239 views

Is there a way to globally set when to treat a very small number as zero?

I understand that I can use Chop to force a very small number to be treated as 0 and can use ...
1
vote
2answers
104 views

How can I define an option “packet” for plots so I can only alter the definition and all plots with that “packet” will change appearance? [duplicate]

Possible Duplicate: Consistent Plot Styles across multiple MMA files and data sets So, here's my problem; I have a lot of data that is shown in different plots. I want all the plots to have ...
1
vote
0answers
244 views

NDSolve Convergence test failure and significant effect of DifferenceOrder on eventual results

I am solving a non linear partial differential equation with what I call free boundary conditions (solid mechanicists would know this as simply supported). I realized that this boundary condition ...
2
votes
0answers
514 views

Set Global Maximum Precision

I'm sure this has been asked before, but I've looked around and can't figure it out: How do I set a global maximum precision for a notebook (or in general, globally)? I have a large notebook in ...
1
vote
1answer
262 views

Lines with label in Plot options syntax

I wrote a little function to add lines with labels to plots. It just creates customized {GridLines -> ..., Epilog -> ...} code: ...
6
votes
1answer
2k views

Fixed color scale in multiple density plots

I think there should be a simple solution for my current problem, but neither StackOverflow (or the help of Mathematica) or Google have it. I have to plot multiple density plots with a color ...
2
votes
1answer
497 views

Linear Solve with Modular Arithmetic

I am interested in using LinearSolve[m,b] which will find a solution to the equation $m.x=b$, where I am in mod 2 arithmetic. Is there any way to perform this ...
2
votes
0answers
164 views

EventLocator with LSODA?

Is the EventLocator option not compatible with LSODA on NDSolve. Below is what I tried to do ...
4
votes
1answer
151 views

How to make a notebook that will be window maximized when open?

I use CreateDocument[cells, opts] to create a notebook. When the notebook is open, it has a small default windows size and I need to manually maximize it every ...
8
votes
2answers
243 views

Manipulating OptionsPatterns[]

How do you combine OptionsPatterns? For example, I would like to have a function that can take both options that I specify, and options for all graphs: ...
1
vote
1answer
83 views

MousePosition Scaling over a cell

I'm trying to have the button follow the mouse while within the output text cell. The scaling does not exactly work as intended (fails to follow mouse correctly). ...
4
votes
2answers
117 views

Problems with setting style options

Consider the following: FirstOutput=Style["Test", FontSize -> 20] SetOptions[Style, FontSize -> 20]; SecondOutput=Style["Test"] I would like the string ...