Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
6
votes
1answer
302 views

Set some Method options for NDSolve globally while allowing others to change

In a code base that is difficult to change for unrelated issues, I have many invocations of NDSolve that look like the following: ...
6
votes
1answer
97 views

How to specify Options for a custom Import converter?

Mathematica includes RegisterImport to setup custom functions which read and translate file data for Import, effectively ...
6
votes
1answer
203 views

Graphs' options vs JournalArticle stylesheet

Bug introduced in 10.4 and fixed in 11.0.1 As noticed by Alexei Boulbitch, below one of my answers, there appears to be an unexpected issue with VertexLabels in <...
6
votes
0answers
156 views

ShowSelection color [closed]

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

SetOptions for every new notebook [duplicate]

Possible Duplicate: Mathematica “prelude” I'd like every plot to have a frame and Helvetica labels. I'm satisfied with ...
5
votes
3answers
1k views

How to fill only a plotting area with Background [duplicate]

With ...
5
votes
2answers
2k views

X label in GraphicsColumn is cut off

I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example, ...
5
votes
1answer
217 views

OptionsPattern[] taken as a Replacement Rule

I was trying to write my own plot function taking as unit size cm instead of points. I've tried ...
5
votes
3answers
172 views

Why are the options given for IconData causing errors when used?

Reported to Wolfram Technical Support [CASE:4212712] Using Options on IconData reveals: ...
5
votes
1answer
1k 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 only ...
5
votes
3answers
233 views

Graphics option to suppress lines between adjoining polygons

In 10.3.1 there was a Graphics option -- it might be a sub-option of Method -- which erases the thin line visible at the join ...
5
votes
3answers
330 views

difficulty abstracting the OptionValue pattern

I am building lots of functions that use Options and OptionValue and wanted to reduce the redundancy in the expressions that ...
5
votes
2answers
211 views

Why does SetOptions not know about ImageSize for Show?

ImageSize works fine as an option for Show when used in a call. Show[image,ImageSize->100] But SetOptions does not know about that: ...
5
votes
1answer
502 views

Manipulations with options

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

Giving Plot options defined outside of the Plot expression [duplicate]

How can I give Plot formating expressions on a separate line just like ListPlot? When I use the following code with ...
5
votes
2answers
106 views

How to specify both Center and Graphics directives for Dividers option in Grid?

The docs for Dividers give an example featuring Center as the setting for the the Dividers ...
5
votes
3answers
267 views

FillingStyle->{None,Automatic} gives unexpected results?

Plot[1 - x^2, {x, -1.5, 1.5}, Filling -> Axis, FillingStyle -> {None, Automatic}] produces an outcomes I find unexpected: In contrast, ...
5
votes
1answer
836 views

How to make a filled Ellipsoid?

I want to make a filled Ellipsoid, but it seems Filling options doesn't work in Graphics ...
5
votes
1answer
866 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 ...
5
votes
1answer
1k views

Evaluating function only when its optional argument is numeric

I want to have the argument 'a' for myf2 in form of optional argument, but at the same time I need to evaluate the function only if 'a' is Numeric, see also my previous question. ...
5
votes
3answers
724 views

Switching among view points in a Manipulate expression

Edit: Some additional viewpoints were included to make it easier to test. Here's code for an alternative function, the graph of which is a bit less symmetric. Feel free to use either code set: ...
5
votes
1answer
163 views

Remove CellMargins option from many cells

I have a very old notebook in which many cells had the CellMargins option set manually. What's the easiest way to remove all those manual option settings?
5
votes
1answer
791 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 ...
5
votes
1answer
104 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 ...
5
votes
1answer
601 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 ...
5
votes
1answer
103 views

Setting options of object after defining it

Is it possible to edit the options of an object like Plot or Graphics after I store it as a variable? For example, consider the ...
5
votes
1answer
83 views

What are the automatic settings of a BSplineCurve object?

Consider the following object: spline = BSplineCurve[{{0,1}, {1,1}, {0,1}, {-1,1}, {-1,0}}, SplineClosed->True]; Graphics[spline] What would be an equivalent <...
5
votes
1answer
101 views

Is there a (simple!) way to convert all initialization cells of a document to normal cells?

I like to work with initialization cells. During the different stages of development of my notebooks, I however often need to change those. If they are scattered throughout the notebook, it is ...
5
votes
1answer
86 views

Why is { } interpreted as an option in my function? [closed]

I don't understand the output from: ...
5
votes
1answer
158 views

What is the difference between the second argument of ToString and its option FormatType?

Is there any real difference between ToString[expr, form] and ToString[expr, FormatType→form]? In all my examples, they seem to ...
5
votes
1answer
491 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[] ...
5
votes
1answer
90 views

Why are the edge items in Grid truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
5
votes
1answer
135 views

How to safely forward/manage options between functions?

Algorithms can often be splitted into smaller and reusable functions (that's a good thing). However with this scheme it is not clear to me how to ensure the consistency of the option values and ...
5
votes
1answer
71 views

CreateNotebook[“Testing”] writes all TaggingRules to the notebook

Bug introduced in V11.2 or earlier and persisting through V11.3 CASE:4072649 Some of notebook types generate notebooks with TaggingRules for their purposes: ...
5
votes
2answers
90 views

Is there a way to clear all the CellChangeTimes lists in a notebook?

I have a very large notebook that has evolved over years. It is the result of countless copy and paste, edit, divide, merge, etc., operations. Some of the cells have hundreds (thousands?) of ...
5
votes
1answer
94 views

Why is “Evaluatable” unchecked by default in cell option but cell still execute?

In my Mathematica, all my cells have the option "Evaluatable" unchecked by default Thus, if I want to prevent some cells to be executed, it is not possible because Evaluatable is already unchecked (...
5
votes
1answer
97 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 ...
5
votes
1answer
323 views

What are the possible values of sub-options for Classify[]?

Specifically, how can I find the possible values of sub-option "KernelType" of option "Method" for Classify? Here's an example: ...
5
votes
0answers
59 views

What does the PerformanceGoal option of FindMinimum do?

FindFit and FindMinimum both have a PerformanceGoal option. It is not documented. What does ...
5
votes
0answers
124 views

OptionsPattern[] Vs. opt___ [closed]

Since version 6 I've been dutifully using OptionsPattern[] instead of the original opts___ for passing options to functions. I ...
5
votes
0answers
228 views

About the OptionsPattern[] approach of inheriting Options

Szabolcs showed in this post, that there are possibly two approaches to inherit function options. He recommended the Join approach. At first, I agreed. But today I ...
5
votes
0answers
82 views

Bug for Cubics -> True in Eigenvalues?

Let's consider the simple code ...
5
votes
0answers
127 views

Which filter does InverseRadon use by default?

I am using the InverseRadon function. According to the documentation the function uses a Hann filter and no cutoff (...
5
votes
0answers
108 views

What objects other than Button can take rules for their Appearance options?

So I was messing with the ServiceConnect dialog and I stumbled upon this hidden in a ButtonBox in its code: ...
5
votes
0answers
73 views

Controllers going out of sync after re-enabling dynamic updating (if external changes were made)

Bug reproduced in V10.4.1 and persisting through V11.0.1 A support case with the identification [CASE:3713364] was created [...] I was able to reproduce the issue, and consequently, I filed a report ...
5
votes
0answers
77 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 ...
5
votes
0answers
269 views

AbsoluteOptions doesn't return correct option value of Ticks?

I just come across a function called AbsoluteOptions when trying to figure out the specific option value of Ticks -> Automatic...
4
votes
3answers
573 views

How to programmatically enable/disable a slider in Manipulate?

in my code below, I have 2 variables a and b, and a option whether it is on or off state. I would like to disable slider for variable b (and therefore it would take default value = 0 in that case) ...
4
votes
2answers
6k views

Automatically return output using decimals instead of fractions

I have a mathematica file with an algorithm that feeds another program with data. my problem is that some times (randomly) the output is in fraction instead of decimal. The other program (java) does ...
4
votes
2answers
120 views

Using Padding and Margins with Graphics object

I have relatively simple question. I need to control size and background color of the following two zones separately (indicated by blue and magenta arrows on the figure). Using ...

1
3 4
5
6 7
11