2
$\begingroup$

I am trying to plot a helicoid using Plot3D.

I would like all the functions that make it up to appear the same.

I am curious if there is a way I can do that other that by repeating the same PlotStyle 3 times--surely there must be some syntax shortcut?

But I have not found it?

What I have - notice the redundancy in {{Opacity[0.5], Pink},{Opacity[0.5], Pink},{Opacity[0.5], Pink}}. Surely there must be a better way?

Plot3D[
 {ArcTan[y/x] - Pi, ArcTan[y/x] , ArcTan[y/x] + Pi} 
, {x, -Pi, Pi}
, {y, -Pi, Pi}
, PlotStyle -> {{Opacity[0.5], Pink},{Opacity[0.5], Pink},{Opacity[0.5], Pink}}
]
$\endgroup$
  • 5
    $\begingroup$ See PlotStyle, "Details," first bullet point. $\endgroup$ – Michael E2 Jul 25 at 20:23
4
$\begingroup$

Use

PlotStyle -> Opacity[0.5, Pink]

to have all functions in the first argument of Plot3D style Pink with Opacity .5.

$\endgroup$

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