[pstricks] Help with a Phase Diagram

rossi at york.cuny.edu rossi at york.cuny.edu
Tue Nov 16 22:08:27 CET 2004


Dear Herbert:

Thank you for the example of the phase diagram you provided below.  It comes out
beautiful!!  I apologize for taking so long to respond.

What does the vertical bar(|) in statements like:
 
\uput[-90](B|,0,0){\footnotesize 100}

mean?  How should I interpret this? Is it documented somewhere?

Regards,

Angelo

> \documentclass[a4paper,12pt]{article}
> \usepackage[dvipsnames]{pstricks}
> \usepackage{pst-node}
> 
> \SpecialCoor
> \definecolor{gray95}{gray}{0.95}
> \definecolor{gray90}{gray}{0.90}
> \definecolor{gray85}{gray}{0.85}
> \definecolor{gray80}{gray}{0.80}
> \begin{document}
> 
> \begin{pspicture}(-1.25,-0.75)(4,4)
>    \psframe[fillstyle=solid,fillcolor=cyan](4,4)
>    \pnode(1,1){A}\pnode(2.667,2){B}\pnode(3.7,3.6){C}
>    \pscustom[fillstyle=solid,fillcolor=gray80]{
>      \pscurve(0,0)(0.5,0.4)(A)
>      \pscurve(A)(B)(C)
>      \psline(C)(4,4|C)(4,0)(0,0)
>    }
>    \pscustom[fillstyle=solid,fillcolor=YellowGreen]{
>      \pscurve(0,0)(0.5,0.4)(A)
>      \psline(A)(0.9,4)(0,4)(0,0)
>    }
>    \pscircle*[linecolor=red](0,2){3pt}
>    \psframe[fillstyle=solid,fillcolor=gray95](C)(4,4)
>    \psline[linestyle=dashed,linewidth=1pt](0,2)(4,2)
>    \qdisk(A){3pt}\qdisk(B){3pt}\qdisk(C){3pt}
>    \uput[-90](1,0){\footnotesize 0.01}
>    \uput[-90](B|,0,0){\footnotesize 100}
>    \uput[-90](C|,0,0){\footnotesize 374}
>    \uput[180](0,1){\footnotesize 0.006}
>    \uput[180](0,0|C){\footnotesize 218}
>    \rput(2,-0.75){\footnotesize Temperature (C)}
>    \rput{90}(-1.25,2){\footnotesize Pressure (Atm)}
> \end{pspicture}
> 




Scanned for Malware by York College/CUNY




More information about the PSTricks mailing list