I'm wondering how I should use \fillbetween
as the following:
I need to change the color of "Weakly solvable" and "Unsolvable" areas.
\documentclass[border=2pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{intersections}
\usetikzlibrary{automata,positioning,shapes}
\begin{document}
\begin{tikzpicture}
\node at (2,4) {\textbf{Weakly solvabale}};
\draw[name path = line] (4,5) -- (4,0);
\draw [rounded corners=15pt] (0,0) rectangle ++(7,5);
\draw[name path = circle, fill=LimeGreen] (2,1.7) circle [radius=1.2cm] node {\textbf{Solvable}};
\node at (5.5,2.5) {\textbf{Unsolvabale}};
of=line and circle,
soft clip={domain=-3:3}
];
\begin{pgfonlayer}{bg}
\fill [orange!50,
intersection segments={
of=circle and line
}];
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
rectangle split horizontal
option added?bg
layer is not defined