Simple 2D graph drawing - PostScript

Viewed 1275

Can you tell me an easy way to draw graph(2+x, sin(x), cos(x+3)/3.....) in PS format?

For example, I want to draw f(x) = 2+x, with the following values:

Table of values: 
Value of X = -5 | -4 | -3 | -2 | -1 | -0 | 1 .....
Value of Y = -3 | -2 | -1 |  0 |  1 |  2 | 3 .....

How to draw this graph? Draw lineto, draw polygon or use curve command? What do you think is the best solution?

1 Answers
Related