I am trying to shade the outside part of
y>-2|x-3|+4
, however with the following code, I can only shade inside. Can anyone tell me how to shade the outside?Code: Select all
\documentclass[a4paper,ngerman,12pt,parskip]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathpazo}
\usepackage{babel}
\usepackage{pstricks-add}
\begin{document}
\begin{center}
\psframebox[fillstyle=solid,fillcolor=black!10,framesep=0pt]{%
\begin{pspicture*}(-3.2,-3.2)(6,6)
\pscustom[fillstyle=solid,fillcolor=blue!20,linestyle=none,algebraic]{%
\psplot{-3}{3}{2*x-2}
\psplot{3}{7}{-2*x+10}
}
\psplot[linewidth=2pt,algebraic]{0}{7}{-2*abs(x-3)+4}
\psaxes{<->}(0,0)(-3,-3)(5.8,5.8)[$x$,-90][$y$,0]
\end{pspicture*}}
\end{center}
\end{document}