# Concerning the default coloring made by Plot3D in 10.4 [closed]

Recently, I have installed Mathmatica 10.4, but I found out that when I use Plot3D, it gives me a mesh. In order to add color, I have to explicitly set ColorFunction.

So I wonder: Is it possible to change the default setting for the ColorFunction?

## closed as unclear what you're asking by xzczd, MarcoB, m_goldberg, user9660, dr.blochwaveMay 11 '16 at 7:42

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• I'm a bit confused, maybe you wanted to set PlotStyle instead? – J. M. is away May 10 '16 at 10:03
• You can use something like SetOptions[Plot3D, {ColorFunction -> "Rainbow"}]; and now whenever you call Plot3D it will use that color function. If you want the change to be more permanent (to persist after a kernel restart) then you need to add it to your init.m file – Jason B. May 10 '16 at 10:03

## 1 Answer

To get the Plot3D to look the way it used to, use the option PlotTheme -> "Classic".

Compare the current output,

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]


with what you get with the classic theme,

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, PlotTheme -> "Classic"]


If you want to make that change permanent, then add the line

SetOptions[Plot3D, {PlotTheme -> "Classic"}]


to your init.m file. You could also add color in other ways, with a ColorFunction as you mention, and you can store that option as the default using SetOptions as well.

• Can you be more specific on which "init.m" file shall I add that options?(I'm using Kubuntu) – Chuan Chen May 14 '16 at 5:07
• @ChuanChen Evaluate SystemOpen[\$UserBaseDirectory\Kernel\init.m] and add it there – Jason B. May 14 '16 at 5:14