Next: , Previous: , Up: plot   [Contents][Index]


3.15.7 parametric

When in parametric mode (‘set parametric‘) mathematical expressions must be given in pairs for ‘plot‘ and in triplets for ‘splot‘.

Examples:

      plot sin(t),t**2
      splot cos(u)*cos(v),cos(u)*sin(v),sin(u)

Data files are plotted as before, except any preceding parametric function must be fully specified before a data file is given as a plot. In other words, the x parametric function (‘sin(t)‘ above) and the y parametric function (‘t**2‘ above) must not be interrupted with any modifiers or data functions; doing so will generate a syntax error stating that the parametric function is not fully specified.

Other modifiers, such as with and title, may be specified only after the parametric function has been completed:

      plot sin(t),t**2 title 'Parametric example' with linespoints

See also Parametric Mode Demos.