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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply