Hot answers tagged

9 votes
Accepted

Fill rainbow along vertical axis

a solution using RegionPlot: ...
banone's user avatar
  • 728
8 votes

Fill rainbow along vertical axis

Using LinearGradientFilling: ...
Syed's user avatar
  • 48.9k
8 votes
Accepted

Plotting Sin[x] and filling down to the axis when Sin[x] > 0

Try RegionFunction and Show ...
Ulrich Neumann's user avatar
8 votes

Plotting Sin[x] and filling down to the axis when Sin[x] > 0

One possible way could be: ...
Syed's user avatar
  • 48.9k
8 votes

How to fill a triangle enclosed by three non-parallel lines

...
Syed's user avatar
  • 48.9k
7 votes
Accepted

Filling area under line with lowest value

...
kglr's user avatar
  • 392k
7 votes

Fill rainbow along vertical axis

ParametricPlot[{x, 4 y + (1 - y) x^2}, {x, -2, 2}, {y, 0, 1}, ColorFunction -> {Function[{x, y}, ColorData["Rainbow"][y]]}]
kglr's user avatar
  • 392k
7 votes
Accepted

How to fill with color the space between plotted points?

We use Catenate@Transpose@data to construct a cyclic path to construct a polygon to fill the region. ...
cvgmt's user avatar
  • 69.7k
7 votes
Accepted

How to fill a triangle enclosed by three non-parallel lines

...
David G. Stork's user avatar
6 votes

Shading under a curve with dots

Since V 12.1 we have PatternFilling ...
eldo's user avatar
  • 61.5k
6 votes
Accepted

How to fill the first region enclosed by a self-intersecting parametric curve?

Edit DiscretizeGraphics +RegionUnion + PlanarFaceList https://mathematica.stackexchange....
cvgmt's user avatar
  • 69.7k
6 votes

How can I properly plot this region, with some filling too?

...
Bob Hanlon's user avatar
  • 155k
6 votes
Accepted

How can I properly plot this region, with some filling too?

Plot[{2 - x, 1, Min[2 - x, 1]}, {x, 0, 2}, Filling -> {3 -> 0}, Exclusions -> None, Epilog -> {Orange, Line[{{2, 0}, {2, 1}}], Thickness[0.04]}]
cvgmt's user avatar
  • 69.7k
6 votes

How can I properly plot this region, with some filling too?

Combine ImplicitRegion, Plot and Rectangle by using Show....
Domen's user avatar
  • 22.2k
6 votes
Accepted

Filling a curve to a vertical axis: Q#2

...
kglr's user avatar
  • 392k
6 votes

How can I build a cycled curve from three orientable Bezier curves and fill the curved region?

First we need new definition of BezierFunction because actually (Mathematica v12.2) it's not possible to define ...
Ulrich Neumann's user avatar
5 votes
Accepted

Using Filling went wrong

Even though you return a list in your f[x], Mathematica sees this as a single curve. You should explicitly provide two separate curves: ...
Domen's user avatar
  • 22.2k
5 votes
Accepted

Is there a better way to control "Filling"?

Change the PlotStyle for If[0.25 <= x <= 0.75, 0] in each of the plots. ...
Bob Hanlon's user avatar
  • 155k
5 votes

Gray level shading of image histogram bins

B = RandomImage[1, {200, 200}]; ImageHistogram[B, ColorFunctionScaling -> False, ColorFunction -> GrayLevel] With your image we have to scale the vertical ...
Roman's user avatar
  • 46.9k
5 votes

How can I build a cycled curve from three orientable Bezier curves and fill the curved region?

Edit Does not depend on PlanarFaceList and we can distinct the boundary lines. ...
cvgmt's user avatar
  • 69.7k
4 votes

Is there a better way to control "Filling"?

ImplicitRegion+ RegionPlot. ...
cvgmt's user avatar
  • 69.7k
4 votes

Drawing a shaded area under a probability distribution

Try ...
Ulrich Neumann's user avatar
4 votes

Using Filling went wrong

You can use Region functionality as follows: ...
Syed's user avatar
  • 48.9k
4 votes
Accepted

Drawing a shaded area under a probability distribution

Clear["Global`*"] Using Manipulate ...
Bob Hanlon's user avatar
  • 155k
4 votes

How can I properly plot this region, with some filling too?

...
kglr's user avatar
  • 392k
4 votes

Filling the area between three curves with the command Filling

Plot[{x^2, x, -x + 1, Min[x, 1 - x]}, {x, 0, 1}, PlotStyle -> {Automatic, Automatic, Automatic, None}, Filling -> {4 -> {{1}, {None, Automatic}}}]
kglr's user avatar
  • 392k
4 votes
Accepted

Default color filling together with HatchFilling

Plot[{x, 2 x}, {x, 0, 1}, Filling -> {1 -> {2}, 2 -> {Top, Directive[ColorData[97, "ColorList"][[2]], HatchFilling[]]}}] ...
eldo's user avatar
  • 61.5k
4 votes

Gray level shading of image histogram bins

Do it yourself using a bar chart: ...
flinty's user avatar
  • 24.8k
3 votes

Filling a curve to a vertical axis: Q#2

To apply filling only to the first curve, you make a plot of the first curve with filling and a second plot withoutfilling of the rest of the curves and show them together: ...
Daniel Huber's user avatar
  • 50.3k
3 votes

Filling the area between three curves with the command Filling

Plot[{x^2, x, -x + 1}, {x, 0, 1}, Filling -> {1 -> {{3}, {Automatic, None}}}] You can replace Automatic with whatever directive you want. Update Missed that ...
lericr's user avatar
  • 26.4k

Only top scored, non community-wiki answers of a minimum length are eligible