Let us consider the following 3d plot:
Plot3D[{x, y}, {x, 0, 1}, {y, 0, 1}]
resulting in a plot where separate colors are used for each plot. What if I only want to plot one function, but like the color of the second plot in the previous example and want to use it for it? Is there a SIMPLE and NEAT way how to achieve this?
Charting`ResolvePlotTheme[Automatic, Plot3D]. You can pick the 2nd one to reproduce the blue style you see by default. – Szabolcs Dec 28 '19 at 09:37Charting`ResolvePlotTheme[Automatic, Plot3D]. Take the 2nd plot style from that output of that command and use it. – Szabolcs Dec 28 '19 at 11:06Plot3D[y, {x, 0, 1}, {y, 0, 1}, PlotStyle -> Directive[Specularity[GrayLevel[1], 3], RGBColor[ 0.368417, 0.506779, 0.709798], Lighting -> {{"Ambient", RGBColor[ 0.196998383`, 0.252204821, 0.333209402`]}, {"Directional", RGBColor[ 0.15473514`, 0.21284718`, 0.29811516`], ImageScaled[{0, 2, 2}]}, {"Directional", RGBColor[ 0.15473514`, 0.21284718`, 0.29811516`], ImageScaled[{2, 2, 2}]}, {"Directional", RGBColor[ 0.15473514`, 0.21284718`, 0.29811516`], ImageScaled[{2, 0, 2}]}}]]– Szabolcs Dec 28 '19 at 11:07Plot3D[y, {x, 0, 1}, {y, 0, 1}, PlotStyle -> ("DefaultPlotStyle" /. (Method /. Charting`ResolvePlotTheme[Automatic, Plot3D]))[[2]]]Related question: https://mathematica.stackexchange.com/questions/172147/the-default-plotstyle-for-plot3d-and-how-to-replace-the-color
– Dec 28 '19 at 12:20Plot3D[y, {x, 0, 1}, {y, 0, 1}, PlotStyle -> Charting`ResolvePlotTheme[Automatic, Plot3D][[5, 2, 4, 2, 2]]]– Dec 28 '19 at 12:35