1. The plot is y=2x+1 (I am trying to shade as those it is y<=2x+1). Is there a way to see the numbers on the axis more clearly?
2. Is there code to draw inequalities?
Thank you for your suggestions.
Nick
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}
\psset{unit=1cm,opacity=0.4}
\psframebox[fillstyle=solid,fillcolor=black!10,framesep=0pt]{%
\begin{pspicture}(-3.2,-3.2)(6,6)
\psaxes{<->}(0,0)(-3,-3)(6,6)
\pscustom[fillstyle=solid,fillcolor=blue!30,linestyle=none,algebraic]{%
\psplot{-3}{3}{2*x+1 }
\psline(5,0)(0,0)
\psline(5,0)(5,-5)}
\psplot[linewidth=2pt,algebraic]{-3}{3}{2*x+1}
\end{pspicture}}
text
\end{center}
\end{document}