See the attached latex code where I would like to shade the region between the drawn parabola and ellipse.
Anybody knoes how to do this?
I have tried several combinations using \clip, \scope etc. without success.
Best regards,
Kent
Graphics, Figures & Tables ⇒ filling a region
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
filling a region
Hi Kent,
start, filling between ellipse and parabola2, adding:
Stefan
start, filling between ellipse and parabola2, adding:
Code: Select all
Code, edit and compile here:
\begin{scope}\clip (S) ellipse (\a cm and \b cm);\filldraw[rotate=90,fill=yellow] (T) parabola (PP2) -- (9,0);\end{scope}
Stefan
LaTeX.org admin
filling a region
Stefan, thanks for help!
May be I was not precise enough to define what I wanted to achieve.
I want the shading to be as indicated in black in the attached file.
Kent
May be I was not precise enough to define what I wanted to achieve.
I want the shading to be as indicated in black in the attached file.
Kent
- Attachments
-
- image2017-11-02-191233.pdf
- (51.41 KiB) Downloaded 202 times
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
filling a region
Ok, then this should do it:
Stefan
Code: Select all
Code, edit and compile here:
\begin{scope}\clip (S) ellipse (\a cm and \b cm);\filldraw[rotate=90,fill=yellow] (T) parabola (PP2) -- (-5,0);\filldraw[rotate=90,fill=yellow] (T) parabola (PP) -- ( 5,0);\end{scope}
LaTeX.org admin
filling a region
Thank you very much!
Your support is highly appreciated.
Your support is highly appreciated.