Questions dealing with optional named arguments of Mathematica functions.

learn more… | top users | synonyms

0
votes
0answers
29 views

Do you know the options of RandomSeed in ClusteringComponents? [on hold]

ClusteringComponents[data, 4, 1, Method -> "KMeans", DistanceFunction-> EuclideanDistance, "RandomSeed" -> 10] As above, 4 means cluster number, ...
0
votes
0answers
33 views

Why Mathematica does not Maximize when using parameter

I have recently started using Mathematica and I have got a question using it. I would appreciate if one could help me figuring out how to handle it. I have the following simple maximisation code <...
1
vote
2answers
50 views

Changing Plot Options for two different graphs under Manipulate

I am trying to plot two discontinuous functions, each with different plot options, using Manipulate. In my code, I have defined a function for $z$ and $sq$ in my code. ...
7
votes
2answers
213 views

Weird behavior of conditions when using OptionsPattern and OptionValue

I'm trying to define a function that is evaluated differently depending on its options. This code ...
3
votes
1answer
99 views

NDSolve DAE solution order is mixed up

Bug in 10.4.0.0, probably introduced earlier. Compare the two solution sets below: in the first one (x == False), there are only 3 dependent variables while in ...
1
vote
0answers
58 views

How to place window on second screen?

I am trying to open a window on a second screen (a thunderbolt display attached to a macbook pro) that is the full size of the second screen. Here is the command I use: ...
2
votes
1answer
41 views

Define return values for a function that is not of type Boolean

I have a function with more than two possible return values. A simplified example is the following function that classifies vertices of a graph according to their degrees: ...
15
votes
3answers
301 views

How to check the validity of an option value

I have a user-defined function, func, which takes the following form: func[arg1, arg2, options] Here is the actual code ...
5
votes
1answer
418 views

Manipulations with options

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

Create new notebook at fixed size

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

AnimationRate not a Manipulate option? [duplicate]

I was trying to set the speed of the Manipulate play button, following this question. Namely, I wanted to specify the option AnimationRate when I have two or more slider controls. However, it seems ...
16
votes
0answers
103 views

Inconsistent handling of Dynamic option values; intended, omission, or bug?

In answering Dynamic ClipPlanes calculated from current ViewPoint Kuba and I got into a brief exchange regarding how Option values wrapped in Dynamic should be ...
0
votes
0answers
16 views

No MenuBar despite CurrentValue[EvaluationNotebook[],WindowElements] saying it exists

I have 32-bit linux 14.04 (arch returns i686) with Mathematica 10 {$Version in Mathematica ...
4
votes
1answer
193 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 ...
80
votes
4answers
5k views

Functions with Options

Suppose you want to create a function which has optional arguments. Maeder's book Programming in Mathematica covers the topic extensively up to version 3, but some things have changed/evolved since ...
16
votes
2answers
506 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 ...
6
votes
1answer
323 views

Warnings shows up in message window

I have no idea why, but suddenly all my evaluation with warnings (like Sum::div:Sum does not converge) has begun to show up in a message box. Since always they ...
7
votes
2answers
99 views

TimeSeries interpolation with time gap awareness

Is there an option for ResamplingMethod (or any other practical way) for specifying different behaviours of the interpolation, depending on, for instance, closest dates (on the ...
7
votes
0answers
88 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 ...
5
votes
0answers
59 views

“PostProcess” and “Tolerance” in DifferentialEvolution? [closed]

What is "postprocess" option in DifferentialEvolution method (for instance when using ...
10
votes
1answer
127 views

Creating Saveable->False notebooks

Bug introduced in 10.3 or earlier and persisting through 10.4.1 Reproduced on Windows 7, 10 Bug confirmed by WRI: [...] It does appear that the Saveable Notebook Option on Windows is not ...
6
votes
1answer
97 views

Why I cannot change the AxesStyle of the Plot?

Bug introduced in 8 or earlier and persists through 10.4.1 I am trying to plot the following single variable function: $$\small\frac{180 \sqrt{\pi ^2-625 t} \left(\pi ^2 (36 t-25)-1500 t \left(45 ...
4
votes
1answer
108 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 ...
0
votes
2answers
41 views

Cell label not appearing for pasted image

When I paste an image into a notebook the cell has no label. In the Generalized Input Tutorial: https://reference.wolfram.com/language/tutorial/GeneralizedInput.html#52003380 they show pasted images ...
5
votes
0answers
129 views

Graphs' options vs JournalArticle stylesheet

Bug introduced in 10.4 and persists through 10.4.1 [...] This GridGraph behavior does appear to be a regression in Mathematica 10.4 from earlier versions. As ...
3
votes
2answers
122 views

Extracting unknown ColorFunction from Plot, Plot3D etc

I wonder if there is a way to extract existing ColorFunction and "override" it with a new function that will depend on original one. This question discusses ...
7
votes
3answers
120 views

The very bottom of CellMargins is missing

Bug introduced in 8 or earlier and persists through 10.4 Edit 16. IV 2016 I've received an answer from WRI Support: [...] It does appear that CellMargins is ...
4
votes
1answer
52 views

Difference between Initialization Cell and Group

Is there a difference between setting a Cell or a Group of cells to be an Initialization Cell...
1
vote
1answer
63 views

How to assign options to a variable?

I want to redefine a function similar to Plot like this: ...
19
votes
3answers
394 views

Writing functions with “Method” options

I'd like to implement several behaviors for a particular function using a Method option added to the function definition: ...
0
votes
2answers
74 views

How does one exchange an option with another one?

Consider an expression with a list of options at its end, like ...
1
vote
2answers
87 views

How to Set the Ratio of Units of the Axes in a 2D Plot?

Consider the following plot Plot[{Sin[x]}, {x, 0, 2*Pi}, PlotRange -> {{0, 2*Pi}, {-1.05, 1.05}}, AxesLabel -> {x, y}, AxesOrigin -> {0, 0}] It is ...
0
votes
0answers
37 views

PlayRange option ignored when exporting

I've made use of autohotkey to write a script that plays audio files of piano keyboard notes when I press key-combos. At risk of digressing I will say a little about how it works. I hold one of i,k,m,...
5
votes
3answers
83 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 ...
6
votes
0answers
115 views

How do I configure the input and output layers of a neural network?

I'm confused about how to set some of the basic properties of a neural network structure using Classify. I'm trying to set the basic properties of a simple neural ...
3
votes
1answer
56 views

What causes the error NotebookEvaluate::nbnfnd?

Help says: NotebookEvaluate can take either a NotebookObject or a filename referencing a notebook file. therefore, I wonder why ...
6
votes
1answer
64 views

FormatType with respect to Cell's content

Minimal example: Let's establish a notebook's stylesheet with additional TestStyle which has a FormatType->"CellExpression": ...
0
votes
1answer
46 views

How to use a PopupMenu in Manipulate? [duplicate]

I need to build a Manipulate to show one of several functions in 3D. The functions should be selected in the Manipulate box using a PopupMenu, but the documentation isn't very helpfull on this. So ...
8
votes
1answer
926 views

Creating self destructing notebook

Inspired by this post I've been trying to implement the idea in Wolfram with no success yet. I've come pretty close though and need some help. So I've managed to do this: ...
4
votes
3answers
92 views

Set absolute options for a function?

How can I set an absolute option for a user-defined function? I understand I can define options like this: ...
2
votes
1answer
44 views

What syntax refers to “this notebook” object?

I want a notebook to automatically save after any cell is evaluated. I found that I should use the command SetOptions[XXX, NotebookAutoSave -> True] to do ...
19
votes
0answers
425 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 7.0 or earlier and persisting through 10.4 or later While the specific bug affecting Plot described in AbsoluteOptions prints error messages in ...
6
votes
0answers
47 views

Unwanted evaluation of RHS of association in FilterRules

FilterRules is a handy function that works on associations, however it does not respect delayed association-values. RuleDelayed ...
1
vote
1answer
119 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 ...
9
votes
1answer
156 views

Petrie polygon projection of a hypercube graph

I am trying to generate the Petrie polygon projection of the 8-cube in Mathematica, like this one: I tried using, for example, the HypercubeGraph function: ...
7
votes
1answer
369 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 ?
6
votes
1answer
108 views

Simulated Annealing, SearchPoints and InitialPoints options set at the same time

I have a function that needs to be minimized. Since the function depends on real-time data (which is fetched every few hours, and the function is redefined according to the new data), I have to run ...
9
votes
1answer
87 views

How to put Magnification control in docked cell

I have made a handy toolbar that provides access to menu items that are not visible when I F12 a workbook. I would like to add the following function to a button in the toolbar: ...
3
votes
2answers
257 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 ...