Hope you're safe!
I'm new to making graphs in pgfplots, and I've made the following graph (code below):
What I'd like to do is to shade the area of the graph corresponding to all the points which lie above the black, red, and green lines, but within the co-ordinates' domain and range. Does anyone know how to do this? Thanks!
\documentclass[12pt]{article}
\usepackage{tikz-cd} %diagrams
\usepackage{pgfplots} %graphs
\begin{document}
\begin{center}
\begin{tikzpicture}
\begin{axis}[
scaled ticks=false,
width=14.9cm,
xmin=0,xmax=0.1,
ymin=0,ymax=0.1,
axis x line=middle,
axis y line=middle,
axis line style= ->,
xlabel={$\delta_{I}$},
ylabel={$\delta_{D}$},
y tick label style={
/pgf/number format/.cd,
fixed,
fixed zerofill,
precision=2,
/tikz/.cd
},
x tick label style={
/pgf/number format/.cd,
fixed,
fixed zerofill,
precision=2,
/tikz/.cd
},
x label style={at={(axis description cs:1,-0.1)},anchor=north},
y label style={at={(axis description cs:-0.1,1)},anchor=south},
]
\addplot expression[black,mark=none,domain=0:.1,very thick]{x}
node[pos=0.95,anchor= south east]{$\delta_{D}=\delta_{I}$};
\addplot expression[red,mark=none,domain=0:.1,very thick]{9/13*x+4/195}
node[pos=0.75,anchor= north west]{$\delta_{D}=\frac{9}{13}\delta_{I} + \frac{4}{195}$};
\addplot expression[blue,mark=none,domain=0:.1,very thick]{-1/2*x+1/30}
node[pos=0.5,anchor= south west]{$\delta_{D}=-\frac{1}{2}\delta_{I}$ + $\frac{1}{30}$};
\addplot expression[green,mark=none,domain=0:.1,very thick]{-2*x+1/15}
node[pos=0.05,anchor= south west]{$\delta_{D}=-2\delta_{I} + \frac{1}{15}$};
\end{axis}
\end{tikzpicture}
\end{center}
\end{document}