Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filling]

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

6
votes
1answer
51 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. ...
0
votes
1answer
68 views

Highlighting a region containing a scatter plot [closed]

I have obtained the plot shown below using ListLogLogPlot[Table[{Abs[a1[[i]]], Abs[a2[[i]]]}, {i, 400}] I want to fill the whole region containing the scattered ...
2
votes
2answers
50 views

How to shade a region using Filling function

I have two following functions: ...
3
votes
2answers
93 views

Fill to the left of the y-axis only [duplicate]

I have the following code that produces a plot of a Normal distribution: ...
4
votes
1answer
101 views

Hatch Fill in ListDensityPlot

I would like to make the black colour hatched/striped instead of a solid fill, so that when I overlay it on top of another plot, I can still see the colours underneath. I know how to change the ...
0
votes
1answer
186 views

Contour Plot with logarithmic scale [duplicate]

I am trying to plot an equation using contour plot with x-axis in logarithmic scale. ...
3
votes
1answer
64 views

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 ...
6
votes
3answers
133 views

Fill within curves

...
1
vote
2answers
89 views

How to calculate the area under value x=[2, 4] for SmoothHistogram (PDF)

I have a discrete signal. How can I calculate the area under the curve for $2\le x \le 4$? How can I fill the same area in the plot generated by SmoothHistogram? ...
1
vote
1answer
80 views

Fill area below two curves in limited area

I need to fill a region in my plot (The white area in the bottom between the two graphs going to the x axis. I cannot figure out a way to do this, please help. ...
2
votes
1answer
55 views

Different lower bound filling option

I recall my previous post Different style of filling in x direction. In particular, in the following code I have a new question: ...
3
votes
1answer
81 views

Different style of filling in x direction

I have the following curves: ...
3
votes
3answers
125 views

Shading on ListCurvePathPlot

I have a series of data points describing the boundary of some region. Using ListCurvePathPlot, I have an easy way to get a nice curve interpolating this boundary (...
4
votes
0answers
65 views

Filling between points in ListPlot only works with points in certain order

I am working on more flexible version of ErrorListPlot from the ErrorBarPlotspackage. The basic idea is that I ...
2
votes
1answer
186 views

Filling in parametric plot

Writing: ParametricPlot[{{x, 0}, {x, 1}}, {x, 0, 1}, Axes -> False] I get: while writing: ...
3
votes
2answers
310 views

Filling the region under a line

I have the following straight line: y[x_] = 4 x - 1; Plot[y[x], {x, 0, 1}, PlotRange -> {{0, 1}, {0, 2}}] I want to highlight the two regions separated by the ...
4
votes
2answers
438 views

Filling in Show[]

Is it possible to fill the region between two ListPlots' in Show[]. Something like: ...
7
votes
3answers
319 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 ...
3
votes
1answer
232 views

Filling without boundaries

How to fill the area between two curves, but without plotting those curves? For example, Plot[Sin[x], {x, 0, 2 Pi}, Filling -> {1 -> 0.5}] gives a plot ...
3
votes
2answers
204 views

Coloring and filling a list plot

I'm trying to make it so that the color of the dot at the top is the color of the vertical line that goes down to the axis. ...
0
votes
3answers
376 views

How do I draw a circle and shade an area?

This is the problem. A circular corral of unit radius is enclosed by a fence. A goat inside the corral is tied to the fence with a rope of length $0 \le a \le 2$ (see figure). What is the area of ...
6
votes
4answers
402 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 ...
1
vote
0answers
48 views

Filling curves with dashed lines in both directions [duplicate]

is there a way to fill the area under the curves with dashed lines (left to right for one curve and right to left for the other) with a transparent filling between lines? I cannot even get dashing ...
4
votes
2answers
259 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: ...
2
votes
1answer
103 views

Problem with line filling in a list plot

In the following plot, why is there some non connected dots, why the colors are'nt true. ...
1
vote
1answer
130 views

Shading a horizontal region in (LogLog)Plot

I would like to shade a horizontal region in LogLogPlot as in the figure below. The figure on the left is done with LogLogPlot: ...
3
votes
2answers
122 views

Colouring in a FilledCurve, self-intersections and all

I have a (vaguely) complex curve with some self-intersections, and I would like to add a filling to the interior. However, the recommended method (of turning Lines ...
1
vote
2answers
124 views

How to plot equally distance points inside 2D region?

I have these two codes: (1) ...
3
votes
2answers
160 views

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, ...
1
vote
1answer
56 views

Colouring Regions of a Plot defined by more than equation

How can I colour the two regions inside the triangle upper and down the parabola plotted together but with different intervals of the variables? The input text I wrote in Mathematica is ...
3
votes
3answers
177 views

Filling a ListPlot with an optical spectrum

I have discrete optical spectra data consisting of pairs of wavelengths and intensities, and I would like to make a ListPlot in which the points are both joined, ...
1
vote
1answer
76 views
0
votes
1answer
90 views

Precise Color Filling with borders in a map

I would like to have a "SimplifiedArea" borders and color filling for each country exactly following the border line, but I get this rough profile ...
9
votes
3answers
577 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 ...
4
votes
2answers
220 views

Plot a the equation of a line with shading below

Is it possible to obtain something similar to what I show below with Mathematica?
3
votes
1answer
309 views

Is it possible to color in parts of a parametric plot [duplicate]

I use this code to plot a parametric plot. ...
4
votes
2answers
385 views

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

This is an example from ListPlot in the Mathematica documentation. ...
3
votes
2answers
695 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 ...
4
votes
2answers
459 views

Filling a 2D plot with a texture

I am having trouble filling the bottom of the following plot: Plot[Piecewise[{{Exp[-1/(1 - x^2)], Abs[x] < 1}, {0, Abs[x] >= 1}}], {x, -2, 2}] with the ...
9
votes
4answers
1k 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 ...
2
votes
1answer
166 views

Region bounded by the curve [duplicate]

How to colour the region "under" the curve? Given that $0<x<3$, $-4<y<4$, $0<z<4$ ParametricPlot3D[{3/2, y, Abs[y]/(3/2)^(1/4)}, {y, -4, 4}]
1
vote
2answers
269 views

Combining a 3D plot and a RegionPlot

Let's say I have a cuboid like ...
5
votes
2answers
214 views

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 ...
9
votes
3answers
625 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 ...
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 ...
1
vote
0answers
49 views

Filling between two plots up to some boundaries only [duplicate]

Suppose I have plotted two functions $f(x)$ and $g(x)$ on the same plot. I would like to shade the area between the two curves only when $f(x) \geq g(x)$, but I cannot get the Filling command to do ...
6
votes
2answers
312 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 ...
0
votes
3answers
231 views

ListPlot and Filling: overlapped vertical lines [closed]

I was plotting multiple discrete series on the same figure. Filling is needed to highlight trajectory of the series. However, if I use Filling->All, filling lines are overlapped. One of the solution ...
2
votes
1answer
278 views

How to fill the heart curve with solid red color? [duplicate]

The parametric equation of the heart curve is from this link $$\left\{\quad \begin{array}{rcl} x&=&\cos {t} \cdot\sin {t} \cdot\ln \left| t\right| \\[10pt] y&=&\left| t\right| ^{0....
4
votes
1answer
134 views

Plot option Filling conflicts with option PlotLabels

Bug introduced in 10.4.0, and fixed in 11.0.0 PlotLabels is new in 10.4.0. The regulars here discuss approaches to numerically unstable systems of higher-order ...