Graphics, Figures & TablesShading in the Picture Environment

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mrotsliah
Posts: 9
Joined: Thu Apr 05, 2007 11:02 pm

Shading in the Picture Environment

Post by mrotsliah »

I have the code below using the picture environment. There is a triangle like shape in which I would like to have a light grey shading. Is there anything in Latex that can do that? Thanks

Code: Select all

\begin{centering}
\setlength{\unitlength}{.55cm}
\begin{picture}(1,1)
\put(1,-11){\vector(0,1){10}}
\put(0,-10){\vector(1,0){10}}
\put(1.15,-0.65){$y$}
\put(9.95,-10.55){$x$}
\linethickness{.25mm}
\put(0,-1){\line(1,-1){10}}
\qbezier(0,-9.75)(3.35,-11.5)(7,-1)
\end{picture}
\end{centering}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply