Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Graphics Options & Styling > Plotting Options >

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.
  • Directives can be combined using Directive[g1, g2, ...].
  • FillingStyle->{g-, g+} specifies that the filling should be done with g- when a point, curve or surface lies below the object being filled to, and with g+ when it lies above.
  • Settings of the form {i_k->{p_k,s_k},...} 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:
Fill to different levels:
Overlapping fills by default combine using opacity:
Fill between curve 1 and the x 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 x 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