gnuplot just for coordinates
shell | pfortuny | (2)
I needed a list of coordinates urgently, and I needed it in a text file (I am using LaTeX a lot lately). Gnuplot does the job properly, if told to do so:
$ gnuplot
gnuplot> set terminal table
gnuplot> set output "hyperbola"
gnuplot> set parametric
gnuplot> plot [t=-1.5:1.5] cosh(t),sinh(t)
gnuplot> quit
$ cat hiberbola |awk '/[0-9]/{print "(",$1,",",$2,")"}' > hyperbola.txt
The above saves in "hyperbola" a list of coordinates: each line contains a pair x y i (x coordinate, y coordinate, type of coordinate). The awk line turns it into a list of parenthesized coordinate pairs.
The lines above saved me a lot of troubles yesterday.