According the documentation for Show
:
- Options explicitly specified in
Show
override those included in the graphics expression.- The lists of non-default options in the
Subscript[g, i]
are concatenated.
In the three plots below, the Lighting
option(s) of the components are placed in different arguments:
p1
has theLighting
option added toShow
.p2
has theLighting
option in each component plot.p3
has theLighting
option in the first component plot only.
The resulting plots are pairwise different in V10.0.0+ (up to V10.2 currently). The plots are all the same in V9.0.1. (Mac OS.)
Clear[f];
f[t_, z_] := Cos[z/2]^0.5*(1 + HeavisideTheta[z - 0.35 Pi]);
r1 = f[0, z] /. HeavisideTheta -> (0 &) /. z -> 0.35 Pi;
r2 = f[0, z] /. HeavisideTheta -> (1 &) /. z -> 0.35 Pi;
p1 = Show[ (* Lighting -> ... added in Show *)
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, -Pi, 0.35 Pi}, Mesh -> None, PlotStyle -> Specularity[0]],
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, 0.35 Pi, Pi}, Mesh -> None, PlotStyle -> Specularity[0]],
ParametricPlot3D[{r Cos[t], r Sin[t], -0.35 Pi},
{t, -Pi, Pi}, {r, r1, r2}, Mesh -> None, PlotStyle -> Specularity[0]],
PlotRange -> All,
Lighting -> {{"Directional", RGBColor[1, 1, 1], {-4, 0, 4}}}(*****)];
p2 = Show[ (* Lighting -> ... in each plot *)
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, -Pi, 0.35 Pi}, Mesh -> None, PlotStyle -> Specularity[0],
Lighting -> {{"Directional", RGBColor[1, 1, 1], {-4, 0, 4}}}(*****)],
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, 0.35 Pi, Pi}, Mesh -> None, PlotStyle -> Specularity[0],
Lighting -> {{"Directional", RGBColor[1, 1, 1], {-4, 0, 4}}}(*****)],
ParametricPlot3D[{r Cos[t], r Sin[t], -0.35 Pi},
{t, -Pi, Pi}, {r, r1, r2}, Mesh -> None, PlotStyle -> Specularity[0],
Lighting -> {{"Directional", RGBColor[1, 1, 1], {-4, 0, 4}}}(*****)],
PlotRange -> All];
p3 = Show[ (* Lighting -> ... in first plot only *)
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, -Pi, 0.35 Pi}, Mesh -> None, PlotStyle -> Specularity[0],
Lighting -> {{"Directional", RGBColor[1, 1, 1], {-4, 0, 4}}}(*****)],
ParametricPlot3D[{f[t, z] Cos[t], f[t, z] Sin[t], -z},
{t, -Pi, Pi}, {z, 0.35 Pi, Pi}, Mesh -> None, PlotStyle -> Specularity[0]],
ParametricPlot3D[{r Cos[t], r Sin[t], -0.35 Pi},
{t, -Pi, Pi}, {r, r1, r2}, Mesh -> None, PlotStyle -> Specularity[0]],
PlotRange -> All];
Here are the output of V10.0.0+ (top row) and V9.0.1 (bottom row):
GraphicsRow[{p1, p2, p3}]
Is this a bug or an undocumented change?
Discovered while investigating questions related to How to avoid these garbage and missing mesh lines in ParametricPlot3D?