The Stack Overflow podcast is back! Listen to an interview with our new CEO.

# Questions tagged [fillbetween]

{fillbetween} is a library of {pgfplots} that allows to fill the area between two arbitrary named plots. It can also identify segments of the intersections and fill the segments individually.

149 questions
Filter by
Sorted by
Tagged with
95 views

### Area type plotting with pgfplot

I want to make a kind of area plot, a difference between two datasets, with logarithmic Y scale. Is it possible with option 'stack plot'?. In the example provided in the manual, of course the default ...
350 views

### Filling area between parabola and multiple lines

I have a parabola and 4 lines. What I need to do is fill the outer area delimited by the parabola and these lines. Here is what I currently have I would like the orange fill to be only in the ...
333 views

### How to use fill between package along the y axis

I am currently wanting to shade the area S_{2} which is the area bounded by the curve y=g(x) and the lines y=10 and y=4. Now, the following code is what I am using but how do you use the fill between ...
498 views

### How to fill 3 areas or more under a curve with different dashed colors?

I tried to use tikz and pgfplots packages in order to fill different areas under a curve with different colors. The issue is in the script below. When I define the area's draw pattern for two first ...
120 views

### Filling space between coordinates

Because I failed to plot a cumulative distribution function, I tried to draw some paths (it´s just for demonstration purpose). Unfortunately I can not fill the spaces between the two "functions". The ...
110 views

### How to fill in the space between two drawn plots?

Someone's answered a question about the space between two drawn lines before, but I'm finding it impossible to see how their answer applies to mine and have no idea how the clips work and what I need ...
180 views

### How can I fill below of intersection of a plane and a cylinder of this picture?

I want to fill below of intersection of a plane and a cylinder of this picture, contain of arc AB and A'B' and below of polygon ABB'A' (fill form water). My code \documentclass[border=2mm,12pt]{...
632 views

### Fill area between wave-lines

I want to draw a diagram in which one bar is too large to fit in the axis. So I want to indicate this by "cutting" the bar with two parallel wavelines. My approach was to draw the diagram with the ...
74 views

### Filling space under curve in a plot with date coordinates

How can I fill the space between the curves underneath the lines. The red filling should go to y=120, the green to y=80. And only if the datapoints are over this values. \documentclass{scrartcl} \...
217 views

### Problem with fill between and scale option in tikz environment

I have a problem when I try to scale my tikzpicture. The following code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{patterns} \usepgfplotslibrary{fillbetween} \...
196 views

### Color intersection between curves using fillbetween

I have two Guassian distribution curves, as shown here and I am attempting to color the areas under the curves as well as the intersection between them, like here: I assumed fillbetween would be the ...
72 views

### Plot changing abruptly when xmin is changed slightly

When I run the following \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz,pgfplots} \usepgfplotslibrary{fillbetween} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=-1.6,...
353 views

### Fill Between with Multiple Tikzpicture

I am using PGFPlots version 1.14 and PGF version 3.0.1a and am having a weird effect with fill between. The coloring for fill between is appearing in the subsequent graph, not in the graph it was ...
558 views

### Tikz - Filling a node with random smooth, closed shapes

I am trying to create the following illustration. Using Tikz, I managed to achieve a partial effect as shown below (please ignore the dimension mismatches). The code I used (MWE) for arriving thus ...
34 views

### PGFplots with fillbetween and standalone class [duplicate]

I am trying to produce a picture showing the mean value theorem for definite integrals. To do this I am using pgfplots with fillbetween. However, when using the standalone class I get a lot of blank ...
289 views

### pgfplots: How to get a legend of fill area?

I want to make a bar plot and put the average with error bar or an error behind it. So far I got it working, except I can't get the filled area to show up in the legend. Here is my working example \...
192 views

### Can't get fillbetween in a pgfplot to work for me

I try to fill an area between two plots in pgfplot diagram in a specific domain using the pgfplotslibrary fillbetween but I can't manage to get a result. Maybe one of you could say what am I doing ...
111 views

### Shading a region to the left of a parabola

I want to draw the parabola x=y^2 in the square box [-2,2] x [-2,2]. The parabola partitions the box into two pieces, and I want to shade the region to the left of it, i.e. the set of points (x,y) ...
790 views

### PGFPlots - Fill area between two curves

Three days ago I posted a question on Stack Exchange on how to fill the area between two curves (see question). It is my goal to have the fill area of two curves color differently based on when one is ...
2k views

### PGFPlots - Fill area between two curves

Recently I found a great example provided by the community of Stack Exchange where fillbetween was used to fill the area between a curve and a constant (see 1st image). I liked it especially, since ...
475 views

### Soft clip defined by domain fails in fill between for one of tables

I cannot understand why figure (a) does not display the filled region, while (b) does. PGF reports the following warning: Package pgf Warning: fill between skipped: the first input path is empty. ...
523 views

### Strange fill between behavior

I have just started to use the fill between library and it is very useful but I admit it sometimes is a black box for me. For example, if I want to fill the space enclosed by y=x^2 and y=2-x^2 (So ...
164 views

### Using symbolically the coordinates of an intersection point between curves for filling the area below a rectangle

I would like to fill the area under the rectangles that have the origin and the working point (Q_1, H_1) and (Q_2, H_2) respectively obtained as intersections between the two red curves with the blue ...
353 views

### Fill Area between Arcs of Sphere

I have tested a few different methods to do this but can't seem to get it right - I need to shade the small area between the two arcs in the upper hemisphere of the sphere labelled \Delta \Theta. \...
387 views

### PGFPlots fillbetween layer issue with main layer

I am using fill between to create some diagrams where I need semi-transparent fillings above ploted lines. As normally fillings are put into a separate layer pre main below plot lines, I tried to move ...
148 views

### Warning in tikz (“first input path is empty”)

I'm trying to fill the area between two curves. Ideally, what I want to do is already answered here, but I get the following warning (twice): Package pgf Warning: fill between skipped: the first ...
228 views

### Filling in tikz between a curve?

How would one fill between the lines of f(x)=-1/x ? This is my code so far... \documentclass{article} \usepackage{tikz,pgfplots} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{l}{8cm} ...
106 views

### Graphics: Tikz Picture Placed Incorrectly when Drawing Areas Between Curves

I'm trying to use the method outline in Graphics: Area between curves to create a graph of the area between two curves to insert into a solution sheet. However, when I do, the box is placed ...
280 views

### fill between Definite integral

hola quiero que el área bajo la curva y la recta sea con un solo fill between (entre ambas funciones) como hago? per Google translate : Hi I want to fill the area under the curve and the line (...
497 views

### Fill between two functions

In the example below, I am trying to present two pictures, one with shading between a wave profile and the ship profile (successful) and the second with shading between at water line at \zeta=0 and a ...
217 views

### Shading in area between f = 1 and g = |x|

I have the following: \documentclass{article} \usepackage{pgfplots} \usepackage{mathtools} \usepgfplotslibrary{fillbetween} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \begin{...
268 views

### Filling pattern between two path without axis

I want to fill between two paths I created with a pattern. When I do so, the filling is always black. I would like other colors/patterns. My MWE is : \documentclass[a4paper,12pt,twoside]{book} \...
1k views

### pgfplots fillbetween with multiple curves

I have a TikZ picture like this: \begin{tikzpicture} \begin{axis}[ axis lines=middle, xmin=-0.5,xmax=3.5,ymin=-0.5,ymax=3.5 ] \addplot[very thick,blue, samples=300, domain=0:3, name ...
469 views

### pgfplots fillbetween layering issue

I am using ticklabel style={fill=white} with pgfplots to ensure my tick labels are readable despite my grid-lines. However, it seems that when I use fillbetween the ticklabels get drawn after the ...
549 views

### fill between and axis equal not getting on (pgfplots) [closed]

I'm trying to visualise the area under the curve in the first quadrant of a function, say f(x) = 6-2x. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \...
208 views

### How to use tikzscale together with pgfplots fillbetween library

I rely on the tikzscale package to conveniently scale all my pgfplots to the right size. However, I recently ran into the problem that this doesn't seem to work with the fillbetween library. Is there ...
676 views

### Filling areas under multiple adjacent curves

I want to shade the area of overlap for adjacent normal curves, shown in the lower graph. I can get shading between the first two curves but not for subsequent curves. I need shading at overlapping ...
113 views

### pgfplots fillbetween in two axis does not work [closed]

Consider the following MWE: \documentclass[10pt, border=0pt]{standalone} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} \pgfplotsset{ compat=1.13, width=100pt, height=100pt, scale only axis,...
158 views

### Pgfplots: fill between let the axis options to be neglected

In the following example, the axis lines should be yellow and ultra thick, but using the fill between instruction let the axis options to be neglected: \documentclass{standalone} \usepackage{pgfplots}...
406 views

### Shading multiple areas between vertical lines in pgfplot

I'm working with pgfplots on shading areas between vertical lines. So basically to create rectangles, restricted by 2 values on the x-axis. This can be done by drawing using tikz, but I would like to ...
328 views

### How to fill region defined by several smooth plot tikz

I am having problems filling the region below that is given by 4 paths with known intersection points. After playing around with clipping and doing my due diligence searching the forums I am still ...
451 views

### Fillbetween doesn't fill entire area under graph [duplicate]

I'm trying to fill the area under a graph in tikz so that it looks like this: However, this is what I end up with: Here's the MWE: \documentclass[class=minimal,border=0pt]{standalone} \usepackage{...
381 views

### pgfplots library fillbetween with table data creates strange x shapes

I'm trying to fill the area between my data and the x-axis using pgfplots and its library fillbetween. My two attempts are shown here: \documentclass[a4paper,11pt]{article} \usepackage{pgfplots} \...
179 views

### fill between in pgfplots changes legend font [duplicate]

I am working on a document in which several plots are placed alongside each other. Some of them use "fill between" and some of them don't. The problem now is that depending on whether this is used or ...
53 views

306 views

### Fill Area pgfplots

I somehow have problems getting the area below my curve filled. The library fillbetween should be able to handle this but fails for me (probably because of me). MWE: \documentclass{standalone} \...
75 views

### Fillbetween not displaying when compiled

Below is a minimal example of a script which reads in data from a file and then fills in the region defined by the plot below the x axis and the x axis itself. The input file can be found here: http:/...
258 views

### How to clipping between two curves?

I have to fill between two curves like this photo \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{patterns,calc,positioning,shapes} \pgfplotsset{compat=1.10} \...