Questions tagged [default]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
1 answer
147 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/...
  • 2,881
7 votes
2 answers
159 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 ...
  • 857
8 votes
1 answer
57 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
72 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 ...
  • 2,009
5 votes
2 answers
70 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,484
2 votes
0 answers
59 views

Default arrowhead primitives

Are there source files with Lines etc. that produce (boundary of) the default arrowhead I'm imagining something like ...
  • 3,109
13 votes
2 answers
833 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 ...
  • 2,940
1 vote
1 answer
77 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
26 views

Overriding default value of inheritied option as per passed options

Consider the following example that shows the spirit of my problem: ...
  • 912
2 votes
1 answer
110 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
  • 3,111
5 votes
1 answer
139 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 ...
  • 65
4 votes
1 answer
75 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? ...
  • 12.7k
3 votes
1 answer
138 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
113 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
54 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
67 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 ...
  • 2,009
1 vote
1 answer
156 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+...
  • 113
2 votes
1 answer
113 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,055
2 votes
1 answer
101 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 ...
  • 3,703
12 votes
2 answers
273 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. ...
  • 39.8k
11 votes
1 answer
453 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 ...
  • 4,119
19 votes
1 answer
165 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
130 views

What is the default method of FindClusters?

I used Method -> Automatic on FindClusters and obtain a cluster autoCts as below:- ...
  • 3,389
4 votes
2 answers
59 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 ...
  • 1,785
24 votes
3 answers
7k 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: ...
  • 343
3 votes
1 answer
56 views

Using other functions' replacement rules

I have a module that uses some default options for NDSolve like so ...
  • 559
11 votes
2 answers
313 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
590 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 ...
  • 11.5k
5 votes
0 answers
147 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 (...
  • 66
1 vote
0 answers
94 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 ...
  • 1,724
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
160 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, ...
  • 228k
20 votes
2 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 ...
  • 228k
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 ...
  • 1,533