I've been trying out Tikz recently and going through the manual. I understand that, to plot a function, I just use something like \draw plot function{x*x};
I was wondering - is there a relatively easy way to shade the region between the curve and the x-axis between, say, x = 1 and x = 2?
Graphics, Figures & Tables ⇒ Tikz Shading/Plot
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Tikz Shading/Plot
I guess the example from the pgf/tikZ manual (Part V - Utilities, p. 375) explains best what to do in this case. Call the manual on the command prompt of your machine.
Best regards
Thorsten¹
Code: Select all
texdoc pgf
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10