This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PlotStyle

PlotStyle
is an option for plotting and related functions that specifies styles in which objects are to be drawn.
  • PlotStyle->g specifies that a graphics directive g should be used to draw all the main objects in a plot.
  • PlotStyle specifies that successive directives should be used cyclically for successive objects.
  • The directives that can be given include:
Dashing[{w1,...}]dashing specification
Directive[g1,g2,...]composite graphics directive
EdgeForm[g]edge-drawing specification
FaceForm[g]face-drawing specification
Glow[c]glow color
GrayLevel[i]intensity
Hue[h]hue
Opacity[a]opacity
PointSize[d]point size
Red, Blue, etc.named colors
RGBColor[r,g,b]RGB color
Specularity[s]surface specularity
Thickness[w]line thickness
  • For individual , a list of directives is equivalent to Directive[...]. For a single g, a list of directives must be given as {list}.
  • PlotStyle can apply to points, lines and surfaces.
  • PlotStyle->None specifies that the main objects in a plot should not be drawn explicitly, though mesh and filling are not affected.
Plot and related functions will automatically style multiple curves:
Explicitly style different curves:
Add specularity to a surface:
Use transparency to show hidden features:
Use transparency to show overlapping regions:
Plot and related functions will automatically style multiple curves:
In[1]:=
Click for copyable input
Out[1]=
 
Explicitly style different curves:
In[1]:=
Click for copyable input
Out[1]=
 
Add specularity to a surface:
In[1]:=
Click for copyable input
Out[1]=
 
Use transparency to show hidden features:
In[1]:=
Click for copyable input
Out[1]=
 
Use transparency to show overlapping regions:
In[1]:=
Click for copyable input
Out[1]=
New in 1 | Last modified in 6