Questions tagged [default]
The default tag has no usage guidance.
37
questions
0
votes
1
answer
219
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?
2
votes
2
answers
62
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.
...
0
votes
0
answers
49
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 ...
10
votes
1
answer
183
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/...
7
votes
2
answers
180
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 ...
8
votes
1
answer
87
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 ...
1
vote
1
answer
83
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 ...
5
votes
2
answers
77
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.
...
2
votes
0
answers
66
views
Default arrowhead primitives
Are there source files with Lines etc. that produce (boundary of) the default arrowhead
I'm imagining something like
...
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 ...
1
vote
1
answer
88
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 ...
0
votes
0
answers
32
views
Overriding default value of inheritied option as per passed options
Consider the following example that shows the spirit of my problem:
...
2
votes
1
answer
112
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
5
votes
1
answer
165
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 ...
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?
...
3
votes
1
answer
155
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 ...
1
vote
2
answers
139
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[...], ...
0
votes
1
answer
56
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 ?
1
vote
1
answer
87
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 ...
1
vote
1
answer
178
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+...
2
votes
1
answer
221
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 ...
2
votes
1
answer
118
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 ...
13
votes
2
answers
352
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.
...
12
votes
1
answer
528
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 ...
19
votes
1
answer
171
views
Why does setting SyntaxInformation add a definition to DefaultValues
Before setting any definitions to the symbol f, the DefaultValues of f is empty:
...
4
votes
0
answers
143
views
What is the default method of FindClusters?
I used Method -> Automatic on FindClusters and obtain a cluster autoCts as below:-
...
4
votes
2
answers
78
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 ...
25
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:
...
3
votes
1
answer
56
views
Using other functions' replacement rules
I have a module that uses some default options for NDSolve like so
...
11
votes
2
answers
322
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, ...
5
votes
2
answers
654
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 ...
5
votes
0
answers
157
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 (...
1
vote
0
answers
104
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 ...
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 ...
8
votes
1
answer
163
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,
...
20
votes
3
answers
2k
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 ...
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 ...