Questions tagged [filling]

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

Filter by
Sorted by
Tagged with
25
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 ...
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 ...
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 ...
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 ...
29
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 ...
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 ...
4
votes
4answers
4k views

How to plot filling under a curve?

I want to mark critical areas for statistical test on the plot. How can I do this? This: ...
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: ...
7
votes
4answers
21k 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 ...
9
votes
5answers
981 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" ...
13
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. ...
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 ...
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., ...
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
2answers
559 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 ...
11
votes
2answers
464 views

Plot between multiple curves

I have three functions, U1, U2, Dead. I would like to fill the area between the three ...
4
votes
1answer
1k views

Filling only part of a plot [duplicate]

I have something plotted on [-6,6] but I would like to fill only the part from [-5,5] (to the axis). I'm looking through the documentation but I'm not terribly well-versed in Mathematica and can't ...
4
votes
2answers
548 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 ...
2
votes
2answers
281 views

How to use ParametricPlot and fill closed areas with blue and red?

The current code is : ...
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 ...
4
votes
2answers
433 views

How can I limit the filling range in a list plot? [duplicate]

This is an example from ListPlot in the Mathematica documentation. ...
4
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 ...
15
votes
3answers
456 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 ...
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 ...
6
votes
2answers
323 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 ...
5
votes
2answers
570 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 ...
4
votes
2answers
295 views

Stop ListContourPlot from interpolating beyond the data points

I am using listcontourplot to show my 3D data points but It is interpolating between faraway points and it is changing the outline of the shape. this is what I want to see: and this is what I have: ...
4
votes
0answers
183 views

Bug in ListLinePlot[] when Filling up and down?

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later I'm trying to understand this apparently incorrect Filling behavior in ...
3
votes
2answers
573 views

Hatched filling for ListLinePlot

I have the following piece of code that uses ListLinePlot to plot 3 curves which I would like to each have a hatched filling of different colors. I've tried a couple of approaches I found on this ...
3
votes
1answer
86 views

Different style of filling in x direction

I have the following curves: ...
2
votes
1answer
411 views

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, ...
-1
votes
1answer
339 views

Why does the filling on my ListPlot not reach the axis for some values? [duplicate]

Why does ...
15
votes
1answer
496 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: ...
11
votes
2answers
779 views

Filling Fill incomplete in ListLinePlot

...
5
votes
1answer
2k views

Filling the area between two curves, only where and if the second lies above the first one [duplicate]

I would like to make a filling of a plot between two curved dynamically.I have two lines depending upon parameters. They may cross one another, and may not in different domains of the parametric space....
5
votes
2answers
466 views

Filling the empty space in RevolutionPlot3D

I'm wanting to plot the solid of revolution from the area between two functions such as: $1\leq x \leq e$ and $1 \leq y \leq 2 + ln(x)$, doing something like this: ...
5
votes
3answers
2k views

ListPlot and filling between curves

I have a simple question. Why is Filling not working in the following? ...
4
votes
4answers
406 views

Filling and Shading an Harmonic Curve

Suppose I have an equation plotted as shown: ...
4
votes
2answers
282 views

Fill curve betwen specified abscissa points [duplicate]

I am plotting the Maxwell-Boltzman distribution of molecular speeds. I want to be able to select a region to integrate using a manipulate function. Then I want to have that same region filled in on ...
3
votes
4answers
758 views

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 ...
3
votes
2answers
773 views

How do I add a line legend to a list plot?

I want to label a ListPlot using LineLegend with the line colours corresponding to the filling. For example if I use this ...
2
votes
1answer
215 views

ListLinePlot partial filling

I use ListLinePlot to plot data: ...