Plot y = sin(x) for -10 < x < 10 with the axes reversed, i.e., y as the horizontal axis and x as the vertical axis.

 generate x -10,,10 100
 set xlabel 'sin(x)'
 set ylabel 'x'
 graph sin(x) x
 

Plot (x(t),y(t)) for 0 < t < 20, where x(t) = exp(-0.1*t)*cos(t) and y(t) = exp(-0.1*t)*sin(t).

 generate t 0,,20 100
 set xlabel 'e<^>-0.1*t<_>cos(t)'
 set ylabel 'e<^>-0.1*t<_>sin(t)'
 graph exp(-0.1*t)*cos(t) exp(-0.1*t)*sin(t)
 

  Display array data as contours and density plot
  Write data to a file