Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
2 votes
1 answer
154 views

SetOption for plotting [duplicate]

I want to change the default of ListLinePlot to use the scientific PlotTheme with a grid ...
mcocdawc's user avatar
  • 451
2 votes
1 answer
106 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 ...
BenP1192's user avatar
  • 934
2 votes
1 answer
92 views

Label cell goes away with SelectionEvaluate

When a given cell has a label (given with the CellLabel->"label" option of the cell), then this label disappears after calling SelectionEvaluate[ nb ] when the ...
Gabriel's user avatar
  • 1,877
2 votes
1 answer
154 views

Append CellTag to list of Cells

As suggested in this earlier post, I restate my question here about appending CellTags option to existing list of Cells. What I ...
Gabriel's user avatar
  • 1,877
2 votes
1 answer
235 views

SetOptions and Cell

I'm trying to change the CellLabel of Cells using SetOptions[Cell, CellLabel -> "test"] or ...
Gabriel's user avatar
  • 1,877
2 votes
1 answer
78 views

Setting default function values for particular option values

I have a function with some optional arguments. How do I assign a value for the function when one of the optional arguments takes a particular value, regardless of any other argument values?
oweydd's user avatar
  • 345
2 votes
1 answer
96 views

OptionValue and OptionPattern not Changing Values

I am trying to produce a function with a few sets of arguments, one of which can accept options. However it doesn't seem to be responding to the changes that I accept. ...
user avatar
2 votes
1 answer
339 views

Programming a DBSCAN in Mathematica

FindClusters has a built-in Method called "DBSCAN". You can find it on this page: https://...
Terry McGovern's user avatar
2 votes
1 answer
93 views

can square brackets be set to 'SpanMaxSize -> Infinity', so they act like parantheses globally?

From an answer to Keyboard entry of square bracketed matrices in text cells, How to? , I cribbed this code: CurrentValue[EvaluationNotebook[], InputAliases] = DeleteDuplicates@ Append[...
Steven Thomas Hatton's user avatar
2 votes
1 answer
112 views

Function which can take custom options and also accept options for functions that it calls

Consider a function myFunc with options ...
A. Vieira's user avatar
  • 503
2 votes
1 answer
147 views

Keeping a notebook in the toolbar File list

I have a notebook called "Useful Stuff" in which I put things I keep forgetting and for storing bits of useful code. I would like to keep this notebook in the list of notebooks that appear when you ...
Hugh's user avatar
  • 16.4k
2 votes
1 answer
84 views

(SetOptions + Inherited) wrong behaviour in *EventActions?

It seems there is something wrong in the expected behaviour of setting an option back to its default value when this command is executed inside a *EventActions : ...
SquareOne's user avatar
  • 7,565
2 votes
2 answers
247 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: ...
Phab's user avatar
  • 1,623
2 votes
0 answers
57 views

Global LabelStyle option does not work with SetOptions

I want to set global options for a plot, so I used the SetOptions command. However, some of the options don't seem to be applied. More specifically, this is the ...
Eric's user avatar
  • 21
2 votes
0 answers
492 views

Trouble with ParametricPlot and custom options

Consider the following code: Options[pl] = {lim->{0,1}}; pl[n_, OptionsPattern[]] := Plot[x^n, Join[{x}, OptionValue[lim]] ] This function works as expected on ...
Javier's user avatar
  • 285
2 votes
0 answers
57 views

Can Mathematica be set to remind user to save after a set number of unsaved edits have occurred or after a set amount of time has passed?

I lost half a night's work just now because after about 6 months of learning and working with Mathematica it finally decided to crash on me for the very first time. Yeah my bad. At least I can ...
Jules Manson's user avatar
  • 2,457
2 votes
0 answers
143 views

How to define OptionsPattern with autocompletion?

I wish to define a custom function having optional parameters. Usually, OptionsPattern[] meets my requirements, but I would like to build the function similar to embedding ones, which after typing &...
Konstantin's user avatar
2 votes
0 answers
102 views

What Transforming Functions does Simplify use? [closed]

Edit: Turns out in my use case I should use ComplexExpand instead of Simplify. My broader question is still worth answering, but ...
Max's user avatar
  • 1,050
2 votes
0 answers
74 views

What does the option Method->Method in NIntegrate mean? [closed]

Among options for NIntegrate one finds the following construction Method->{name1, Method->name2}. For example, ...
Alexei Boulbitch's user avatar
2 votes
0 answers
45 views

Graphics options defined as a set [duplicate]

I need to use almost the same options for several graphics, and would like to simplify the code which is becoming pretty large. The example below should work, but it doesn't for a reason I don't see. ...
Cham's user avatar
  • 4,093
2 votes
0 answers
122 views

Dynamic WindowSize cooperation with resize area

According to 116030: Front end options, which includes all box options, can take Dynamic heads. That basically means that the FE will compute the value of the ...
Kuba's user avatar
  • 137k
2 votes
0 answers
77 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: ...
Elvis Ramani's user avatar
2 votes
0 answers
125 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: ...
matheorem's user avatar
  • 17.1k
2 votes
0 answers
42 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 ...
Kagaratsch's user avatar
2 votes
0 answers
284 views

Confusing NullSpace Method behaviour

The background of this question is that I'm trying to get the bottom of when the output of NullSpace outputs a list of pairwise orthogonal vectors. On my route to ...
Ian Hincks's user avatar
  • 1,859
2 votes
0 answers
76 views

Error message with RegionPlot after SetOptions

I get an error message with SetOptions[RegionPlot, ImageSize -> Medium]; RegionPlot[u v (1 - v) >= 10, {v, 0, 1}, {u, 0, 100}] that says ...
A.G.'s user avatar
  • 4,362
2 votes
0 answers
159 views

Auto-completion for option values in user-defined functions [duplicate]

In here, and all it's closely related links, I cant find anything that tells me how to set a list of the optional arguments. All I want is something like this ...
Chen Stats Yu's user avatar
2 votes
0 answers
194 views

Set Standard Plot Thickness [duplicate]

All of my plots should have the same set styling, that is, for instance, {ImageSize->460, Frame->True, PlotStyle->Thickness[0.004]}. Of course I do not ...
Coolkau's user avatar
  • 151
2 votes
0 answers
68 views

Why does AbsoluteOptions give the wrong answer for ListPlot? [duplicate]

I'm trying to get the PlotRange from a ListPlot graphic: ...
Andre's user avatar
  • 21
2 votes
0 answers
124 views

Setting Up Lightweight Grid On Multiple Clients Programmatically

I have a number of computers which all might need to use the same (client) configuration for the Wolfram Lightweight Grid at some point. I know that there are ways to programmatically set certain ...
evanb's user avatar
  • 6,026
2 votes
0 answers
108 views

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

I wrote this function to make a ListPlot where the points are colored by a third argument. ...
ArgentoSapiens's user avatar
2 votes
0 answers
289 views

EventLocator with LSODA?

Is the EventLocator option not compatible with LSODA on NDSolve. Below is what I tried to do ...
dearN's user avatar
  • 5,341
1 vote
2 answers
150 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. ...
Wilson's user avatar
  • 349
1 vote
2 answers
178 views

How to extract arguments of color spaces and determine brightness of said colors?

The objective is to produce an automated theme with contrasting colors for EvaluationNotebook FontColor and ...
Jules Manson's user avatar
  • 2,457
1 vote
1 answer
81 views

Extra empty lists as function arguments

Consider the following piece of code: ...
Mher's user avatar
  • 667
1 vote
1 answer
84 views

how to make a customized plotting function that can accept Mathematica's built-in optional arguments?

Suppose I have the following plotting function: selfPlot[func_]:=Show[ContourPlot[Re[f[x+I*y]],{x,-2,2},{y,-2,2}],ContourPlot[Im[f[x+I*y]],{x,-2,2},{y,-2,2}]] ...
Physicist's user avatar
  • 987
1 vote
2 answers
144 views

Add options to a graph after construction

Given a graph which has already been constructed, how can I add, e.g., the option VertexSize -> 3 to that graph without having to deconstruct the graph?
Gert's user avatar
  • 1,510
1 vote
4 answers
153 views

Adding plot options after @ in ListLinePlot [closed]

How can plot options like PlotLabel and PlotRange be added after @ in ListLinePlot? For example: ...
user120911's user avatar
  • 2,655
1 vote
1 answer
54 views

Programmatic access to Export options for filetype

For specific filetypes, e.g JPG, GIF, etc. I would like to get a list of available options for use in Import and Export. Unfortunately, the obvious thing doesn’t work: ...
M.R.'s user avatar
  • 31.4k
1 vote
1 answer
202 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 ...
John McGee's user avatar
  • 2,538
1 vote
2 answers
93 views

Specifying the PlotRange according to a desired center

I have this plot of $f(x)=\ln x$ and the tangent line at $x=e$, and I'd like to specify the PlotRange so that it's the rectangle with its centroid at $(e,1)$, kind ...
user170231's user avatar
  • 1,611
1 vote
1 answer
123 views

Need a few built-in Symbols (functions) whose Options are a mix of Rule-s and DelayedRule-s [closed]

This is for examples in documentation I'm writing for a ResourceFunction["PrettyOptions"] (look for it soon) that is close to completion. Asking for most ...
Jules Manson's user avatar
  • 2,457
1 vote
1 answer
58 views

Using Through function with vectors

I have the vectors defined as follows: v1={x1,y1,z1}; v2={x2,y2,z2}; v12=v2-v1; v21=v1-v2; I am passing an integer function for iteration purpose as follows: ...
Aschoolar's user avatar
  • 883
1 vote
1 answer
693 views

default color scheme in `Histogram` in version 10 [duplicate]

I need to use the default scheme of Histogram in version 10 but cannot get this information. I know the default scheme used in ...
sunt05's user avatar
  • 4,357
1 vote
1 answer
96 views

Using a prompt to set options

I am creating a toolbar. One of the buttons on my toolbar is this setcounter button below. ...
B flat's user avatar
  • 5,513
1 vote
1 answer
105 views

BubbleChart ignores Ticks option [closed]

BubbleChart does not display ticks to the Ticks option specs. ...
Edmund's user avatar
  • 42.3k
1 vote
2 answers
1k views

How to store standard plot settings? [duplicate]

If I plot many graphs with some standard set of options. Is there a way to store this set so that i can have better overview/structure over my plotting commands? example, I plot a function f[x] with ...
Sander's user avatar
  • 45
1 vote
3 answers
141 views

Options in a StringReplace rule

case1 Options[f] = {"t" -> "0"}; f[___, OptionsPattern[]] := StringReplace["content", "t" :> OptionValue["t"]] f[] (* con0en0 *) case2 ...
HyperGroups's user avatar
  • 8,619
1 vote
1 answer
171 views

Put tiny, hidden information on notebook

What is the standard method for inserting tiny, hidden information on notebooks (.nb files) ? From now on, I am planning to insert small, hidden information on every new notebook. And also for some ...
imida k's user avatar
  • 4,285
1 vote
2 answers
77 views

A strange error occurs when using First, Last, and Take to pick out list elements for dynamically styling a button

The top function setstyles is the only one we need to focus on. However, the four functions below it are needed for this to work. These validate up to 4 properties ...
Jules Manson's user avatar
  • 2,457

1
9
10
11 12 13