The pstricks package can be used to quickly draw polygons and other shapes in LaTeX, as an alternative to the TikZ package. This short example shows how to use pstricks to draw a polygon with some simple styling.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

Following on from example 4 which showed how to plot the graph of a function in LaTeX using pstricks, here we extend the example to show how trig functions such as cos, sin and tan can be plotted.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

A short example to show how to use pstricks to plot the graph of a function in LaTeX.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

A quick example to demonstrate how pstricks can be used to show a curve between points, and to show the grid axes view.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

This example shows how to use the pstricks package to indicate an interval region.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

A short example showing how to use the pstricks package for plotting points on a graph with axes.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html

Vectorized into eps by potrace, converted into metapost by pstoedit, manually edited into a tikz picture, cleaned up a bit.
Source: https://github.com/lahvak/TeX-stuff/blob/master/plane.tex

tex based on webpage from LaTeX Community.
website: http://www.latex-community.org/index.php?option=com_content&view=article&id=342%3Awriting-a-latex-class-file-to-produce-a-form&catid=54%3Alatex-document-classes&Itemid=112
Originally Written by Nicola Talbot.
Friday, 20 November 2009 11:55