Skip to main content

Questions tagged [default]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers
59 views

Adding common words or public dictionaries to Mathematica's spell check?

Is there an update to this:Stack Exchange 242114? (That post is a couple years old and has a response from the WRI tech support that the following is impossible and they requested this as a feature) I ...
Craig Carter's user avatar
  • 4,510
0 votes
1 answer
250 views

How to set the default screen style environment to elegant code?

I want to set the default screen style environment to elegant code. How can I do this?
Peter Burbery's user avatar
2 votes
2 answers
96 views

Is it possible to combine a default value in a function definition with type-checking, in case the optional parameter is actually given in a call?

1.) In a function definition, e.g. ...
Adalbert Hanßen's user avatar
0 votes
0 answers
61 views

Changing the default fonts, colours and padding of plots in Mathematica 13

Default legend font After a while of playing around with the option inspector, I've managed to change the default font and colour of the axis labels and tick labels of a 2D plot, as well as the ...
Rain's user avatar
  • 636
10 votes
1 answer
218 views

Change the default name of a new notebook from Untitled-*?

I'd like to change the default name of a new notebook to, say, StringJoin[{RandomWord[],".nb"}]. There is a hint how one might do this in $InstallationDirectory/SystemFiles/FrontEnd/...
Craig Carter's user avatar
  • 4,510
7 votes
2 answers
200 views

Make a function work by the keyword instead of argument position while evaluating

I have a simple function which has default values. foo[a_: 1, b_: 2, c_: 3] := a + b + c To evaluate it, I need to provide the arguments in the same positional ...
Rupesh's user avatar
  • 887
9 votes
1 answer
121 views

Can the default marker shapes for ListPlot be accessed the same way the default color scheme can?

One of the fun tricks known to Mathematica users is that the default colors for Mathematica plots (as of v12) can be accessed by the ColorData[97] color scheme. So ...
Michael Seifert's user avatar
1 vote
1 answer
89 views

Ensure that Options for built-in symbols are the original defaults

I often create symbols (no args) or functions (with args) in which common options (and styles) are set in body and unique opts within args for managing multiple calls to built-in functions. these spit ...
Jules Manson's user avatar
  • 2,467
5 votes
2 answers
82 views

How to check if CapForm is set by default in the plot?

In this plot it seems like the CapForm["Square"] is set by default. ...
hana's user avatar
  • 2,390
2 votes
0 answers
72 views

Default arrowhead primitives

Are there source files with Lines etc. that produce (boundary of) the default arrowhead I'm imagining something like ...
Adam's user avatar
  • 3,956
15 votes
2 answers
1k views

Mathematica 13: everything is magnified

In Mathematica 13 the font and everything else in notebooks and the size of toolbars is too big, compared to Mathematica 12.3 (with all the settings the same, magnification set at 100%). It seems, the ...
Anixx's user avatar
  • 3,585
1 vote
1 answer
99 views

How to change Global Preprint preferences for how matrixes are displayed?

I asked a question about how to make all array outputs be displayed as matrices a few weeks ago. I have run into a problem ensuring that the setting change is permanent, however. I thought the global ...
Peter Burbery's user avatar
0 votes
0 answers
34 views

Overriding default value of inheritied option as per passed options

Consider the following example that shows the spirit of my problem: ...
lineage's user avatar
  • 1,154
2 votes
1 answer
113 views

How to configure the Welcome Window?

How to reduce and set a smaller size in the font/text in the Welcome Window? I´d like to obtain in Mathematica 12.3 a Welcome Window as the on I have in Mathematica 11.3
Mika Ike's user avatar
  • 3,241
5 votes
1 answer
171 views

What is the default binning method of Histogram[]?

Histogram[] command returns a histogram of a set of data. There are different methods of binning, such as, Scott's rule, which we can specify the binning method in Mathematica. My question is what is ...
Nima's user avatar
  • 65
4 votes
1 answer
80 views

How can default valued be added in a Query?

I'm not understanding the the default values are not used to produced a length of 0 in the following example. What is the right way to add default values during a query? ...
Alan's user avatar
  • 13.7k
3 votes
1 answer
165 views

Extracting Lighting specs used in a Graphics3D object

I'm getting a plot which is mostly fine with Lighting->Automatic, but a bit too dark. How do I go about getting the Lighting specification used in the plot so I ...
Yaroslav Bulatov's user avatar
1 vote
2 answers
149 views

How can I change the default color of the basic geometric regions in 2D?

I like to use the basic geometric regions in Mathematica, like Parallelogram[...], Rectangle[...], ...
Niels Petter Liset's user avatar
0 votes
1 answer
57 views

Restore messages function to the default ones

Times ago I used the command Off[NDSolve::tag]. Now I've been forgetting which message I removed and I would like to restore it. Someone knows if is there a way to reset all the default messages ?
PeaceEverybody's user avatar
1 vote
1 answer
107 views

How to change path of $UserBaseDirectory to a new location during startup?

I wish to customize where packages and notebooks are saved by creating a custom directory tree which emulates Mathematica defaults. I wish to do this so that paths can be found in $ContextPath for ...
Jules Manson's user avatar
  • 2,467
1 vote
1 answer
195 views

Mathematica 12.1 is treating all my cells as raw texts by default

I was once using Mathematica 11 it all works fine - when I create new Notebook (.nb) input like 1+1 and press shift+...
gudako's user avatar
  • 113
2 votes
1 answer
337 views

Set options once for all, for all Plot-like functions

Currently, to have default font size values for my graphs I do the following: SetOptions[{Plot},TicksStyle->Directive[50],AxesStyle-> Directive[50]]; However ...
StarBucK's user avatar
  • 2,164
2 votes
1 answer
124 views

Change default ImageSize for all graphics functions programmatically only for the current session

How do I change the default ImageSize for all functions producing graphics programmatically for the current session (only)? Something close to an answer is given in ...
Kvothe's user avatar
  • 4,491
14 votes
2 answers
426 views

How to set default version for an external language code cell?

This example is for Python but I would like to set this option for any external language. I have a couple of versions of Python installed. ...
Edmund's user avatar
  • 42.3k
12 votes
1 answer
587 views

Modifying default magnification of documentation

Well, finally, after decades of Mathematica rendering notebooks incorrectly in Windows, and after many years of Mathematica not supporting high-resolution displays in Windows, finally version 12.1 ...
Pirx's user avatar
  • 4,149
19 votes
1 answer
177 views

Why does setting SyntaxInformation add a definition to DefaultValues

Before setting any definitions to the symbol f, the DefaultValues of f is empty: ...
QuantumDot's user avatar
  • 19.7k
4 votes
0 answers
150 views

What is the default method of FindClusters?

I used Method -> Automatic on FindClusters and obtain a cluster autoCts as below:- ...
H42's user avatar
  • 3,479
4 votes
2 answers
81 views

How to return a default value if no match is found in search of string

Suppose I have a string like "a-1_b-2_c-3_d-4" with numbers, labels, and separators, and I want to get ...
Rudy Potter's user avatar
  • 2,562
26 votes
3 answers
8k views

What's the default colormap (or color scheme) used in mathematica?

For example, the colors used on this page: http://reference.wolfram.com/language/ref/ContourStyle.html or here: https://www.wolfram.com/mathematica/new-in-10/plot-themes/default.html or here: ...
Alex's user avatar
  • 363
3 votes
1 answer
58 views

Using other functions' replacement rules

I have a module that uses some default options for NDSolve like so ...
bjorne's user avatar
  • 569
11 votes
2 answers
328 views

Bulletproofing packages against SetOptions of built-ins

Packages are (obviously) written in terms of built-in Mathematica functions. But many (if not, most) of these functions have options, like Expand, ...
QuantumDot's user avatar
  • 19.7k
5 votes
2 answers
698 views

What's the default color function for BarChart, PieChart? [duplicate]

If one increases the number of colored items in a BarChart or PieChart one can see that its color scheme is based on a gradient ...
kjo's user avatar
  • 11.7k
5 votes
0 answers
165 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 (...
jct's user avatar
  • 66
1 vote
0 answers
107 views

Automatic is not always the default option

Contrary to what one might expect, specifying an option to be Automatic sometimes changes the output. For example, by default ...
tparker's user avatar
  • 1,856
8 votes
2 answers
2k views

How to change the default Notebook stylesheet

For everyday work I use a custom notebook template. Its name DefaultModified.nb However, in order to open it I need to first open a built-in default notebook, go to the Menu/Format/StyleSheet and ...
Alexei Boulbitch's user avatar
8 votes
1 answer
168 views

Custom default ImageSize while allowing inheriting

When displaying graphics in the Mathematica front end, and leaving ImageSize at the default, the result will always keep its previous size. For example, ...
Szabolcs's user avatar
  • 235k
20 votes
3 answers
3k views

Change base font for all graphics objects

How can I change the base font style for all graphics objects, including the ones generated using plotting functions? I would like to change this a single time and have it affect all graphics ...
Szabolcs's user avatar
  • 235k
14 votes
1 answer
2k views

Changing default ImageSize in the frontend?

I would like graphs to appear somewhat larger in my notebooks (running v8.0.4 on OSX 10.8.2). Naturally I can specify ImageSize in each individual plot, or drag ...
Brian B's user avatar
  • 1,553