When make a diagram of area bounded by curves, I have 4 choices:
Due to forum restriction, one more will be submitted in a separate post.
General ⇒ PSTRICKS: Diagram of area bounded by curves, best practise?
PSTRICKS: Diagram of area bounded by curves, best practise?
Last edited by yoyoimut on Wed Oct 06, 2010 3:29 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

PSTRICKS: Diagram of area bounded by curves, best practise?
Which method is recommended as the best practise?
Any pros and cons are also welcome.
Thank you in advance.
yoyo
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
PSTRICKS: Diagram of area bounded by curves, best practise?
this way:yoyoimut wrote:When make a diagram of area bounded by curves, I have 4 choices:
Code: Select all
\documentclass[12pt,a4paper]{book}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}[showgrid,algebraic](5,4)
\pscustom[linestyle=none,fillcolor=yellow,fillstyle=solid]{%
\psplot{4}{1}{sin(2*x)+1.5}
\psplot{1}{4}{-0.5*x+2.5}
}
\psset{linewidth=2pt}
\psplot{4}{1}{sin(2*x)+1.5}
\psplot{1}{4}{-0.5*x+2.5}
\end{pspicture}
\end{document}
Re: PSTRICKS: Diagram of area bounded by curves, best practi
Thanks Herbert!
Your solution is very compact.
I no longer need to write RPN notations with algebraic option.
Excellent!
Your solution is very compact.
I no longer need to write RPN notations with algebraic option.
Excellent!