Filling
Details
- The following settings can be used:
-
None no filling (default) Axis fill to the axis Bottom fill to the bottom of the plot Top fill to the top of the plot v fill to value v {m} fill to the m object {i1->p1,i2->p2,…} fill from object ik to pk {i1->{p1,g1},…} use directive gk for the k filling {i1->{p1,{g1-,g1+},…}} use g1- below and g1+ above - For 2D graphics, filling is done in the y direction.
- For 3D graphics, filling is done in the z direction, and on the bounding xy plane.
- In ListPlot, filling effectively draws a "stem" to every point.
- For multiple curves, surfaces or lists of points, Filling->p is equivalent to Filling->{1->p,2->p…}.
- In filling between lists of points that do not line up, the "stems" start at points in the first list, and extend to positions that linearly interpolate between points in the second list.
- By default, the style specified by the setting for FillingStyle is used for all filling.
- Settings of the form ik->{pk,gk} can be used to override the default in particular cases.
- ik->{pk,{gk -,gk +}} specifies that style gk - should be used when ik lies below pk, and gk + when it lies above.
- The gk - and gk + can be composite directives specified with Directive.
Examples
open allclose allBasic Examples (4)
Scope (14)
Filling Limits (4)
Filling Style (7)
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 orange below the axis, and yellow above:
Use a variable filling style obtained from a ColorFunction:
Applications (2)
Here styles indicate where the function differs from its step approximation:
Difference between the function and its linear approximation:
The Factorial function compared to an asymptotic expansion:
Text
Wolfram Research (2007), Filling, Wolfram Language function, https://reference.wolfram.com/language/ref/Filling.html.
CMS
Wolfram Language. 2007. "Filling." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Filling.html.
APA
Wolfram Language. (2007). Filling. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Filling.html