Mathematica > Visualization and Graphics > Graphics Options & Styling > Plotting Options > FillingStyle >

FillingStyle

FillingStyle
is an option for ListPlot, Plot, Plot3D, and related functions that specifies the default style of filling to be used.
  • FillingStyle->g specifies that all filling should be done by default with the specified graphics directive.
  • FillingStyle specifies that the filling should be done with when a point, curve or surface lies below the object being filled to, and with when it lies above.
  • Settings of the form for Filling can be used to override the default style specified by FillingStyle.
Set an explicit FillingStyle:
Use automatic filling styles:
Use automatic filling style together with a ColorFunction:
Set an explicit FillingStyle:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Use automatic filling styles:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Use automatic filling style together with a ColorFunction:
In[1]:=
Click for copyable input
Out[1]=
Fill to different levels:
Overlapping fills by default combine using opacity:
Fill between curve 1 and the axis:
Fill between curves 1 and 2:
Fill between curves 1 and 2 with a specific style:
Fill between curves 1 and with yellow:
Fill between curves 1 and 2; use yellow when 1 is below 2, and green when 1 is above 2:
Use an overall FillingStyle specification:
Fill with opacity 0.5 green:
When FillingStyle is used together with styles in Filling, the latter takes priority:
Fill with green below the axis, and yellow above:
Use a variable filling style obtained from a ColorFunction:
Point-oriented plot functions will fill using a stem:
Line-oriented plot functions will fill using an area:
Surface-oriented plot functions will fill along the boundary:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF