PSTricks - Graphics for T<span class="e">e</span>X and L<span class="a">a</span>T<span class="e">e</span>X


Welcome to the PSTricks web site

Lines -- examples
TUG logo

Main page

Index
Bug list
Documentation
Doc errors
Examples
2D Gallery
3D Gallery
Packages
References
CTAN
Search CTAN:
Germany
USA

Statistics

 


Extended translation of the the 5th edition

 


the 7th edition, total of 960 colored pages

 


2nd edition, 212 pages, includes 32 color pages

 


 


 


 


 


 

 

 


 


3D without pst-3d |  Bars as linestyle |  Bezier-Curves |  How a path is build |  Curves |  Curves around Nodes |  Different Width |  Digital Signals |  Dotted and Dashed |  Double lines |  Erathostenes |  Path |  Filled polygons |  Intersection Points |  Filled bezier curves |  Filled lines |  Knots |  Line ends |  Lineedge |  Line Ends |  Michelson experiment |  Polygons |  \pscustom and psbezier |  Sieve of Erathostenes |  Variable line width |  Vectors | 


Curves Special line ends Intersection Point
line6.png line6.png intersec0.png

The packages pst-circ and pst-3dplot have a macro \ABinterCD, which sets a node at the intersection point of the linear functions which are build through the points A-B and C-D. The coordinates can be drawn easily with the \SpecialCoor feature. This allows to take from nodes/points only one coordinate. For example \psdot(A|B) sets a dot at the point with the x coordinate of A and the y coordinate of B. If we have the intersection point of two linear functions and called E, then we can draw the coordinate lines with
\psline[linestyle=dashed](E|0,0)(E)(0,0|E)
It is from the point on the x axis (x coordinate from E, y coordinate from (0,0)) to E itself and then to the point of the y axis (x coordinate from (0,0) and y coordinate from E).

\pscustom and \psbezier
to get a filled area colored, use always the first \psbezier curve with four and following ones with with three arguments!
bezier0.png nezier1.png

Building a path
path0.png
\documentclass[border=12pt]{standalone}
\usepackage{pstricks}
\def\CW{\psline(2,2)(3,4)(4,1)(4,-3)}
\begin{document}    
	\begin{pspicture}[showgrid](-5,-4)(5,5)
	\pscustom[fillstyle=solid,fillcolor=red,linewidth=5pt]
	{
		\CW % (2,2)(3,4)(4,1)(4,-3)
		\reversepath % now (4,-3)(4,1)(3,4)(2,2)
		\scale{-1 1}
		\CW % (-2,2)(-3,4)(-4,1)(-4,-3)
		\closepath % clockwise path
		% \pscircle moves the current path to (-1,0)
		\pscircle(0,0){1}% clockwise: circle not filled (scale -1 1)!!
	}% The inner of the circle is _not_ inside the path
	\end{pspicture}
\end{document}

Filled polygons
line12.png polygon0.png line13.png
line1 line16

Lineedge
line1.png line1.png line1.png
line1.png line1.png

Curves around Nodes Variable line width
curve0.png curve1.png line2.png

Digital Signals Dotted and Dashed Different Width Special double lines
line4.png line2.png line5.png line5.png

with pstricks-add

3D without pst-3d
line11.png line10.png line8.png

line14.png line15.png

Sieve of Erathostenes
sieve.png

Vectors
line1.png

local time: Thu Nov 14 17:33:27 CET 2024 ; file is: 773.047523148148 days old
contact webmaster _at_ perce.de