Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to create Plot3D with same color as we used to get in V9 but without success. I used PlotTheme -> "Classic" in V10 but the results looks like somehow not the same as V9. I have also copied the FullForm between V9 and V10 and again the plots are different.

does anyone know the reason behind this?


enter image description here


enter image description here

share|improve this question
PlotTheme->"Classic" should be setting Lighting->"Classic" to get the old lights. –  Brett Champion Jul 12 '14 at 2:26

2 Answers 2

up vote 14 down vote accepted

An alternative to @Rahul's suggested fix:

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

enter image description here

The associated Lighting setting matches the one in Rahul's post:

 "DefaultLighting"/.(Method /.Charting`ResolvePlotTheme["ClassicLights", Plot3D])
 (* {{"Ambient", RGBColor[0.312, 0.188, 0.4]},
     {"Directional", RGBColor[0.8, 0, 0], ImageScaled[{2, 0, 2}]}, 
     {"Directional", RGBColor[0, 0.8, 0], ImageScaled[{2, 2, 2}]}, 
     {"Directional", RGBColor[0, 0, 0.8], ImageScaled[{0, 2, 2}]}} *)

Update: Few more combinations of options that give the same result:

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, PlotTheme -> "Classic", Lighting -> "Classic"]
(* thanks: Algohi *)

Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, Lighting -> "Classic", PlotTheme->None]
share|improve this answer
Ah! This is the better solution! –  Rahul Jul 12 '14 at 1:37
thank you @Rahul. –  kguler Jul 12 '14 at 1:44
@kguler I have got this works also Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, PlotTheme -> "Classic", Lighting -> "Classic"] –  Algohi Jul 12 '14 at 4:11
@Algohi, nice find! Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, Lighting -> "Classic", PlotTheme->None] also works. –  kguler Jul 12 '14 at 4:25
Since this is the canonical solution, I'll delete my answer and leave this here: the previous default lighting settings. –  Rahul Jul 12 '14 at 4:55

It quite possible that the default lighting has not changed, but that PlotTheme -> "Classic" introduces an explicit color function. That would make a difference because as it says under Lighting in the docs:

Lighting->Automatic uses ambient light together with four light sources fixed relative to the final displayed image. With the typical default setting ColorFunction->Automatic, colored light sources are used; if an explicit setting for ColorFunction is given, the light sources are taken to be white. »

Further, PlotTheme says that "Classic" is a

historical design of plots to remain compatible with existing uses

Note "compatible", not "identical".

share|improve this answer
Well, if you compare the first three images on the documentation page "Change the Lighting of Plots", which are supposed to look the same (and did in previous versions), it is clear that the default lighting has changed. –  Rahul Jul 12 '14 at 3:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.