up previous next
PlotPointsOn    --    outputs the coordinates of the points to a file


Syntax
PlotPointsOn(L: LIST of points, S: STRING)

Description
This function is the same as PlotPoints with a second argument giving the name of the file to print on.

NOTE: the last argument is a STRING, the name of the file, and not an OSTREAM, as for print on .

Example
/**/  PlotPointsOn([ [1/(X+1/2), X^2-X+14] | X in -10..10], "PLOT-points");
Plotting points...100%
21 plotted points have been placed in the file points

/**/  use QQ[x,y];
/**/  ImplicitPlotOn(x^2*y -(59/4)*x^2 +2*x -1, [-3,3], [0,250], "PLOT-curve");
Plotting points...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
735 plotted points have been placed in the file "PLOT-curve"
After having produced the plot files using CoCoA, start "gnuplot" and then give it the following commands:
  plot "PLOT-curve"
  replot "points"

See Also