Questions tagged [filling]

Questions about shading, coloration, or highlighting of different regions in plots, charts, or mathematica graphics.

Mathematica includes many options for drawing graphics, including: Filling, FillingStyle, and MeshShading.

231 questions
10
votes
6 answers

How to fill a region with lines

How to fill a region with lines: Plot[{t + 1, t}, {t, 0, 4}, PlotRange -> {0, 4},Filling -> {1 -> {2}}] I want to change the filling style to vertical lines, as shown in the right figure below. How should I change the code?
Qi Zhong
  • 1,037
  • 9
  • 16
6
votes
4 answers

How to shade the area bounded by more than 2 functions?

I am trying to shade the area bounded by the lines $y=2$, $y=-x+2$ and the parabola $y=x^2$. The plot is shown below. The area I'm talking about is the that bounded by the 4 black points. I am trying to shade it and I don't know how. Your assitance…
user47181
  • 85
  • 5
5
votes
2 answers

Filling an area with cushion effect

This code: (by @kguler, can be found here, as an answer to "How to shade a plotted region in specific direction?") Row[RegionPlot[x1 + x2 <= 10 && x1 <= 6 && x2 <= 9 && x1 >= 0 && x2 >= 0, {x1, 0, 10}, {x2, 0, 10}, …
Adrian
  • 411
  • 4
  • 14
5
votes
2 answers

Filling under plot

Let say I have this ParametricPlot3D[{Sin[u], Cos[u], u/10}, {u, 0, 20}, Mesh -> {{1}}] Since Filling is not supported with ParametricPlot3D, how can I color the surface between the lines?
ssa
  • 169
  • 8
4
votes
2 answers

Filling the Area between four Halflines in ProbabilityScalePlot

The following picture shows how I make a Weibull Graph to visualize the strength of samples. The code and the needed data are below. In the Epilog of ProbabilityScalePlot I am plotting the confidence intervals for the data. I am doing this with 4…
Maxi
  • 140
  • 6
3
votes
4 answers

Filling between two lines

I'm trying to draw a seven-patch geometry, where some parts need to be filled. The domain itself is no problem, I have the corner points and just plot lines between them. Now I need that the space between two of these lines is filled. How to do this…
Kathi
  • 33
  • 4
3
votes
2 answers

Add filling between a line and axis, but only in the negative region

For plots like the one shown below, what is the syntax for adding filling between particular lines and the axis, but only in the negative region:
user120911
  • 2,655
  • 9
  • 18
3
votes
2 answers

Fill to the left of the y-axis only

I have the following code that produces a plot of a Normal distribution: Plot[Table[PDF[NormalDistribution[μ, 3], x], {μ, {4}}] // Evaluate, {x, -15, 15}, Filling -> None, Axes -> {True, True}, Ticks -> None, PlotStyle -> {RGBColor[0.368417,…
user120911
  • 2,655
  • 9
  • 18
3
votes
1 answer

How do i fill in the area between three graphs

so this is my code and this is my output My quetion is why does the fill stop at sqrt(3)/2 and does not fill in the rest of the area. I am trying to make it so that the area between the three graphs is filled in.
Kiril
  • 31
  • 1
3
votes
1 answer

Different style of filling in x direction

I have the following curves: linea = Line[{{0.1, 0}, {0.1, 50}}]; Show[ Plot[{2/Abs[a], 3/Abs[a], 4/Abs[a], 6/Abs[a]}, {a, 0, 1}, Mesh -> {{0.1, 1}}, MeshShading -> {Dashed, Automatic, Dotted}, MeshStyle -> None, Filling -> {1 -> Axis}, PlotStyle…
Gae P
  • 637
  • 3
  • 11
3
votes
2 answers

Filling in a RevolutionPlot3D?

I am trying to create a graphic to demonstrate the rotation of the line $y=ax$ about the x-axis to produce a filled solid of revolution (a cone in this case). I'm using the RevolutionPlot3D function, however this only displays the surface…
aidangallagher4
  • 289
  • 1
  • 6
2
votes
1 answer

problem with the 'Filling' command

Hello colleagues!! I have an issue with the Filling parameter in a ListPlot. I constructed an equilateral triangle of length 1, where I plot some points in barycentric coordinates, describing a curve and a line when joined. Here's a view: For the…
2
votes
0 answers

Filling -> Axis leaves a gap

Filling leaves a gap between the function curve and the axis Show[Plot[PDF[NormalDistribution[0, 1], z], {z, -3, 6}], Plot[PDF[NormalDistribution[0, 1], z], {z, c=1.4, 6}, Filling -> Axis] ] But for other values (e.g., c=0.5 instead of c=1.4 in…
user13484
  • 21
  • 1
2
votes
2 answers

Filing region between plots with ListLinePlot?

I have the following plot, where {vsoundAll, decAll, pdivAll} are already given in some array and are irrelevant here. I am trying to fill the region between the yellow and red light using the command, Filling -> {2->{3}} but it does not works. What…
CamPos
  • 23
  • 4
2
votes
1 answer

How can I fill figure between y = x^3, x= -1, x=1 and y = 0?

I am trying filling between of lines: $ y = x^3$, $y=0$, $x=-1$, and $x=1$. I tried. Plot[{x^3, 0}, {x, -1, 1}, PlotRange -> {-2, 2}, PlotStyle -> {Automatic, Red}, Filling -> {1 -> {{2}, {LightBlue, White}}}, PlotPoints -> 100] and got How…
minhthien_2016
  • 3,347
  • 14
  • 22
1
2