[pstricks] How to improve this code to produce the same millimeter paper.
Denis Girou
Denis.Girou at idris.fr
Tue Jun 24 21:20:04 CEST 2003
>>>>> "Carlos.Macedo" == Carlos Macedo <qtmacedo at sapo.pt> writes:
Carlos.Macedo> I have some difficulties with the sintaxe of \psgrid command to produce a
Carlos.Macedo> nice-looking millimeter paper.
Carlos.Macedo> ...
Carlos.Macedo> \psgrid[subgriddiv=100,gridlabels=0pt,gridwidth=.01pt,subgridcolor=orange](0,0)(1,1)
Carlos.Macedo> \psline[linewidth=1pt,linecolor=orange](.1,0)(.1,1) % I do not like this
Carlos.Macedo> set of eighteen \psline commands,
The straightforward solution is to use the subgriddiv,
gridwidth/subgridwidth, gridcolor/subgridcolor parameters (see documentation
page 18).
\documentclass[portuguese]{article}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage{pstcol}
\usepackage{pst-plot}
\definecolor{orange}{cmyk}{0,0.61,0.87,0}
\pagestyle{empty}
\begin{document}
\begin{center}
\textbf{\Large Curva de equilíbrio}
\vspace{1.5cm}
\begin{pspicture}(10,10)
\psgrid[subgriddiv=10,gridlabels=0,gridwidth=1pt,gridcolor=orange,
subgridwidth=0.1pt,subgridcolor=orange](10,10)
\psset{unit=10}%
\psaxes[axesstyle=frame,Dx=.2,Dy=.2,
linewidth=0.5pt,linewidth=1pt](0,0)(1,1)
\pscurve[linewidth=1.3pt]
(1,1)(.79,.90)(.644,.818)(.492,.707)(.382,.594)(.298,.498)
(.208,.379)(.120,.252)(.048,.127)(0,0)
\rput{90}(-.15,.5){\textbf{Fracção molar do benzeno no vapor, $y$}}
\rput[lb](.15,-.12){\textbf{Fracção molar do benzeno no líquido, $x$}}
\end{pspicture}
\end{center}
\end{document}
D.G.
More information about the PSTricks
mailing list