31 votes
Accepted

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

"DefaultColorFunction" /. (Method/. Charting`ResolvePlotTheme[Automatic, ContourPlot]) "M10DefaultDensityGradient" ...
kglr's user avatar
  • 395k
20 votes
Accepted

Why does setting SyntaxInformation add a definition to DefaultValues

In my view, the Mathematica front end would have needed a complete rewrite a long time ago to be in a shape where it can compete with modern UI's. Looking at MATLAB, it's clear that you always find ...
halirutan's user avatar
  • 113k
15 votes
Accepted

Bulletproofing packages against SetOptions of built-ins

The approach This seems to be a good case for applying some run-time metaprogramming / introspection. The idea would be to patch the already constructed definitions after they have been created, at ...
Leonid Shifrin's user avatar
14 votes

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

ColorData[97] is the default color scheme. The answer is found in a few different answers throughout this site. For example, Discussion of ...
user6546's user avatar
  • 1,069
11 votes

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

A ResourceFunction called SetLanguageCellSession gives a complete solution for managing external language sessions in Python, Julia, R, etc. Basic example: This ...
M.R.'s user avatar
  • 31.5k
10 votes

How to change the default Notebook stylesheet

Wolfram has an article discussing precisely this: http://support.wolfram.com/kb/29974
ktm's user avatar
  • 4,242
9 votes
Accepted

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

It is possible to do with Options: ...
I.M.'s user avatar
  • 2,936
8 votes
Accepted

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

Building upon Create new notebook at fixed size ...
Kuba's user avatar
  • 137k
7 votes
Accepted

How to change the default Notebook stylesheet

According to the Documentation, DefaultStyleDefinitions is a global option that specifies the default stylesheet for all new notebooks. The stylesheet must be ...
Alexey Popkov's user avatar
7 votes

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

kglr's answer identifies the undocumented color function used by Mathematica and is, therefore, the best answer to this question. However, should you find yourself in a situation* where you don't know ...
m_goldberg's user avatar
  • 108k
7 votes
Accepted

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

This may be realised by manipulating the registered external bundles. Based on the OP's scenario, one can simply do the following: ...
sunt05's user avatar
  • 4,367
7 votes
Accepted

How can default valued be added in a Query?

The issue is indeed that since both defaulter and Length are ascending operators, they are applied "bottom-up". That ...
WReach's user avatar
  • 68.9k
5 votes
Accepted

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

I am not sure if the following is a satisfying answer. You can run CurrentValue[{StyleDefinitions, "Graphics"}] and at some point you will see among ...
bmf's user avatar
  • 15.3k
5 votes

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

You can see how to set frontend options programmatically in the question Is there a way to programmatically set global preferences?. In your particular case: ...
C. E.'s user avatar
  • 70.6k
5 votes
Accepted

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

These strange behaviors can be produced by: SetOptions[EvaluationNotebook[], FrontEnd`ReturnCreatesNewCell -> True] (or, in MMA 12+, just ...
asd1dsa's user avatar
  • 573
4 votes

Bulletproofing packages against SetOptions of built-ins

I really cannot compete with Leonid on metaprogramming and package development but I find the question interesting so I'd like to share a few thoughts. You asked What can I do as a package developer ...
Mr.Wizard's user avatar
  • 272k
4 votes
Accepted

Extracting Lighting specs used in a Graphics3D object

Due to this bug, setting Lighting for Graphics3D as an option directly (e.g. via Show) doesn'...
Alexey Popkov's user avatar
4 votes

How to configure the Welcome Window?

Edit > Preferences > Interface and set the Magnification level to 75%.
ihojnicki's user avatar
  • 3,051
4 votes
Accepted

Mathematica 13: everything is magnified

Following the advice by ihojnicki, evaluating CurrentValue[$FrontEnd, "ScreenResolutionCompatibilityMode"] = True brings everything back to normal. The ...
Anixx's user avatar
  • 3,585
4 votes
Accepted

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

To summarize comments by Domen and me: Graphics`PlotMarkers[] (which is aliased by System`Private`$PlotMarkers) gives glyph ...
4 votes

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

You could use associations as follows: f[in_:<||>]:=With[{m=Merge[{in,<|a->1,b->2,c->3|>},First]}, m[a]+m[b]+m[c] ]; Examples: ...
user293787's user avatar
  • 11.8k
3 votes

Mathematica 13: everything is magnified

There is another workaround, which doesn't affect cell braces but fixes the low-quality rendering of Images in the FrontEnd of version 13.0.0 (...
Alexey Popkov's user avatar
3 votes
Accepted

Using other functions' replacement rules

You can use the fact that rules apply in the order in which they appear: ...
C. E.'s user avatar
  • 70.6k
3 votes
Accepted

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

Confirming @Carl's finding without Trace: Blend[Lighter[System`PlotThemeDump`$ThemeDefaultGradient, 0.2], #1] & This is ...
kglr's user avatar
  • 395k
3 votes

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

You can use TracePrint and guess that Blend is being used: ...
Carl Woll's user avatar
  • 131k
3 votes
Accepted

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?

...
user293787's user avatar
  • 11.8k
3 votes

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

To set the default, open the Option Inspector with the keyboard shortcut Ctrl+Shift+O. You can also do Alt+E to open the edit menu, then P to open the Preferences GUI. Then go to Advanced Settings and ...
Peter Burbery's user avatar
2 votes

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

...
kglr's user avatar
  • 395k
2 votes
Accepted

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

You could do something like this: ...
Henrik Schumacher's user avatar
2 votes

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

...
Syed's user avatar
  • 54k

Only top scored, non community-wiki answers of a minimum length are eligible