Questions tagged [filling]

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

Filter by
Sorted by
Tagged with
47
votes
5answers
7k views

Filling a polygon with a pattern of insets

I am trying to fill a shape with diagonal lines. I am aware of Texture, but it rasterizes the fill pattern, which is not desirable. Here was my crack at it: ...
38
votes
8answers
4k views

Can I make a plot with gradient filling?

Bloomberg has a standard plot style for its line plots in which it uses a gradient filling. Actually the way this seems to be constructed is that a gradient from the ymax to ymin is used as the ...
30
votes
10answers
6k views

Shading between polar graphs

Since PolarPlot doesn't support Filling, what is the best way to shade or fill the a region between two polar curves? For ...
26
votes
6answers
17k views

Filling between boundaries

I would like to visualize what it graphically means to integrate between two boundary values. Therefore I'd like to make a Filling between these two values. Is ...
21
votes
5answers
3k views

How do I plot a histogram with hatched shading?

I can plot an ordinary histogram with blue shading and black borders like this: T = RandomVariate[NormalDistribution[0, 1], 10000]; Histogram[T, 30] And I can ...
21
votes
4answers
1k views

Shading under a curve with dots

I plotted the function $y=x^2$ using the Plot command Plot[x^2, {x,-5,5}] I need to shade the area under the curve using a ...
21
votes
3answers
3k views

Generating hatched filling using Region functionality

Before v.10 came out there were several Q&A on generating hatched filling for Plot, ListPlot etc. In v.10 we have new ...
15
votes
3answers
461 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 12.0 or later I ran into a problem while plotting and I was able to narrow it to this. Before I start "spelunking" I'd like to know if I am overlooking ...
15
votes
1answer
500 views

Strange filling

Bug introduced in 9.0 and fixed in 10.0 I observed some strange behaviour when plotting a function with filling. The code is as follows: ...
14
votes
1answer
2k views

Filling only when one curve is below the other

I want to fill the area between two curves only when curve-1 (Black) is below curve-2(Blue). So In this example, I don't want the middle portion shaded but just the left and right tails to be shaded. ...
13
votes
2answers
611 views

ListLinePlot Filling Wrong

Bug introduced in 8 or earlier and persisting through 12.0 I used ListLinePlot to plot data from .csv files. However, the y-values from Graph 1 do not match to the ...
13
votes
2answers
3k views

Hatched Filling for ListPlot

I am plotting to data curves using ListLinePlot. I like the look of Filling, but this is going to be printed, so I want something both black and white friendly, but giving more definition and ...
13
votes
1answer
684 views

How to do color-fill in images in Mathematica?

Color fill, the ability to apply a desired color to an enclosed area, is one of the basic functions provided by most graphic applications. Is there a similar ...
12
votes
4answers
1k views

Using an Image as the Fill/Texture (not background) of a Plot (not polygon)

Is it possible to use an image, rather than a color, or ColorFunction, as the filling for a plot? For instance, I want to make a plot using ...
12
votes
1answer
2k views

How can I make hatching filling of plot

How can I make hatching filling of plot Like this: I use another one plot with shifting to make filled area above: ...
12
votes
1answer
571 views

Filling to Axis as Arrow

In version 9 I could do the following with the output as shown. ...
11
votes
1answer
337 views

How to fill a closed parametric curve?

I have a curve in parametric form: ...
11
votes
2answers
498 views

Plot between multiple curves

I have three functions, U1, U2, Dead. I would like to fill the area between the three ...
11
votes
2answers
796 views

Filling Fill incomplete in ListLinePlot

...
11
votes
2answers
1k views

How to vary color of fill between listplots based on y-distance between them

I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
10
votes
7answers
5k views

Filling a curve to a vertical axis

I am preparing a figure for an article, and I would like very much to be able to fill a curve, but not under it, but to the vertical axis, i.e. to the left. Due to the meaning of the data I present, I ...
10
votes
4answers
2k views

Plot Filling restricted to domain segment

I'm trying to plot the function $f(x)=\dfrac{1}{x^2}$, filling the square area from (0,0) to (1,1) with purple and filling the area under the curve from 1 to 4 with red. However, Mathematica is not ...
10
votes
3answers
611 views

What's the most efficient way to draw this region?

Viral question on YouTube. But let me start by saying the guy got it wrong. We don't do such things at the age of 11, we do this question about Year 11 (aged 14/15, 16 for some). I want to draw the ...
10
votes
2answers
3k views

How can I fill under a function in a plot just to right of a specified vertical line? [duplicate]

How do I plot a normal curve with filling under the curve and to the right of a vertical line. I would prefer that the vertical line starts at the x-axis and stops at the plotted curve. Basically ...
9
votes
6answers
2k views

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 ...
9
votes
5answers
996 views

Create filling between two trig functions

Working with trig functions, period, amplitude, etc. I found a worksheet at a calculus website, with some nice questions related to interpreting trig functions, at least, they provide some "fun" ...
9
votes
4answers
2k views

How to Fill Between two Curves

I want to fill between the curves on the domain {0,1}. I only want it on that domain, does anyone know how to do that with the given curves? Sorry for a probably simple question, I'm a beginner to ...
9
votes
3answers
725 views

Horizontal line filling with ListPlot

I have a problem with presenting a plot. I have the following data: data := {74.69, 45.47, 42.45, 54.54, 36.04, 31.76, 33.95} and plot it simply as ...
9
votes
3answers
678 views

How to make an exclusion plot in Mathematica, e.g. draw a filled area on one side of the contour line

I want to make an exclusion plot with Mathematica using ContourPlot. So I have a two dimensional function, everything higher then a certain value is excluded. In ...
9
votes
1answer
190 views

Filling option generates extra PlotMarkers in ListLinePlot

Bug introduced in 8 or earlier and persists through 11.0.1 or later Whenever the blue line drops below the orange one MMA (10.0) inserts two additional plotmarkers: ...
8
votes
4answers
3k views

How can I fill a curve in ParametricPlot3D?

I'd like to fill a curve in a ParametricPlot3D in the same way as I might with ListPointPlot3D; i.e., ...
8
votes
1answer
137 views

Filling Stacked Graph v.10.1 [duplicate]

I used a code very similar to the code posted by Kuba stacked line graph with fragmented data ...
7
votes
4answers
22k views

Filling Between Curves [duplicate]

I want to fill in the region between the curves. So far I have this: Plot[{x + 7, 9 - x^2}, {x, 0, 1.5}, Filling -> {1 -> {2}}] But I want something like ...
7
votes
3answers
1k views

Shading regions in ParametricPlot

I am using ParametricPlot to get an X vs Y plot. I want to shade the area enclosed by the ...
7
votes
2answers
284 views

Special case of filling between curves

I have two curves plotted on the same plot. To the left of a given domain value, I want to fill between curve 1 and the x-axis; to right of that value, I want to fill between the two curves.
7
votes
3answers
481 views

Shade a ListLinePlot of many series with their deviations

Consider a single list of data avg = {.5, .6, .5,...} with corresponding standard deviations dev = {.1, .2, .2, ...}. I use ...
6
votes
4answers
1k views

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 ...
6
votes
2answers
137 views

Filling between two arrays with ListPointPlot3D

I would like to Plot two Arrays and use the function Filling to generate a soil layer: ...
6
votes
4answers
465 views

How can I fill the region where two polar plots intersect?

I'd like to reporduce this image (with shading). Color doesn't really matter. Here's what I have so far ...
6
votes
2answers
128 views

Parametric plot showing an unwanted boundary at the maximum parameter value

I'm trying to fill a parametric plot, but I get this ugly seam for some values of $a$. Observe the following code: ...
6
votes
1answer
276 views

Filling the gap between different range

There are three curves in this figure. I use the followed code to fill the gap: ...
6
votes
1answer
312 views

Filling between quantile ranges

Following code plots Quantiles for a GBM process. ...
6
votes
3answers
140 views

Fill within curves

...
6
votes
2answers
606 views

How to fill between abscissa values?

How can I produce a fill (in a plot) that extends between two given abscissa values, and "infinitely" in the ordinate direction? (Of course, here "infinitely" just means "up to the top and bottom ...
6
votes
2answers
330 views

How to fill outside instead of inside graphical shapes?

I want to omit parts of Graphics from scenes by defining a geometric shape where details are visible, a "keyhole" of sorts, and fill all the rest as one would do to ...
6
votes
1answer
87 views

Dynamic filling of a region of a polar plot

I would like to shade area of region as a function of angle using PolarPlot. Here is my attempt. ...
5
votes
4answers
2k views

How to change color dynamically?

I am new to Mathematica and want to change the FillingStyle Dynamically in this Plot. I want ...
5
votes
2answers
406 views

Filling between two B-spline curves

I am trying to fill the space between two curves (curve1 and curve2) I generated since long but unable to do so. Can some one help on this please. The following is the code snippet. ...
5
votes
3answers
2k views

ListPlot and filling between curves

I have a simple question. Why is Filling not working in the following? ...
5
votes
2answers
592 views

Making a rectangular label for RegionPlot

I have a plot that includes a RegionPlot. I want to make a rectangle with the same shading as in the region plot to show as a legend. The dumb way I can think off ...