\documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} \newrgbcolor{xdxdff}{0.49 0.49 1} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25} \begin{pspicture*}(-5,-3.31)(4.97,4.24) \psline(-2,-2)(2,-2) \psline(2,-2)(4,0) \psline[linestyle=dashed,dash=2pt 2pt](-2,-2)(0,0) \psline[linestyle=dashed,dash=2pt 2pt](0,0)(4,0) \psline[linestyle=dashed,dash=2pt 2pt](0,3)(0,0) \psline(0,3)(-2,-2) \psline(0,3)(2,-2) \psline(0,3)(4,0) \psline[linestyle=dashed,dash=2pt 2pt](0,0)(2,-2) \psline[linestyle=dashed,dash=2pt 2pt](-2,-2)(4,0) \psdots[dotstyle=*,linecolor=blue](-2,-2) \rput[bl](-2.29,-1.99){\blue{$A$}} \psdots[dotstyle=*,linecolor=blue](2,-2) \rput[bl](2.16,-2.14){\blue{$B$}} \psdots[dotstyle=*,linecolor=xdxdff](4,0) \rput[bl](4.11,-0.06){\xdxdff{$C$}} \psdots[dotstyle=*,linecolor=darkgray](0,0) \rput[bl](-0.26,0.05){\darkgray{$D$}} \psdots[dotstyle=*,linecolor=xdxdff](0,3) \rput[bl](0.06,3.07){\xdxdff{$S$}} \end{pspicture*} \end{document}