FillingStyle

FillingStyle

is an option for ListPlot, Plot, Plot3D, and related functions that specifies the default style of filling to be used.

Details

  • FillingStyle->g specifies that all filling should be done by default with the specified graphics directive.
  • Possible directives include Opacity, Hue, and in the case of ListPlot also Thickness and Dashing.
  • 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.

Examples

open allclose all

Basic Examples  (3)

Set an explicit FillingStyle:

Use automatic filling styles:

Use automatic filling style together with a ColorFunction:

Scope  (15)

Filling Limits  (4)

Fill to different levels:

Overlapping fills by default combine using opacity:

Fill between curve 1 and the axis:

Fill between curves 1 and 2:

Filling Style  (8)

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:

Plot Functions  (3)

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:

Wolfram Research (2007), FillingStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FillingStyle.html.

Text

Wolfram Research (2007), FillingStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FillingStyle.html.

CMS

Wolfram Language. 2007. "FillingStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FillingStyle.html.

APA

Wolfram Language. (2007). FillingStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FillingStyle.html

BibTeX

@misc{reference.wolfram_2023_fillingstyle, author="Wolfram Research", title="{FillingStyle}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/FillingStyle.html}", note=[Accessed: 18-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_fillingstyle, organization={Wolfram Research}, title={FillingStyle}, year={2007}, url={https://reference.wolfram.com/language/ref/FillingStyle.html}, note=[Accessed: 18-March-2024 ]}