General ⇒ PSTRICKS: Diagram of area bounded by curves, best practise?
PSTRICKS: Diagram of area bounded by curves, best practise?
Due to forum restriction, one more will be submitted in a separate post.
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
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
Your solution is very compact.
I no longer need to write RPN notations with algebraic option.
Excellent!