Question: saving a plot and re-plot it with pointplot

Hi all,

I want to save a plot into Array or other and re-plot it by pointplot.

restart:with(plots):

f:=x->cos(x)+cos(x)^2;

plot(f(x),x=0..2*Pi);

With Array, I want to determine dx (step) of the plot (Array) and the dimension of Array (number of line and column).

If Pk:=plot(f(x),x=0..2*Pi); is Array, I can reproduce the plot as:

ef := {seq([Pk[i,1], Pk[i,2]], i = 1 .. N)}: # Pk[i,1] is x and Pk[i,2] is f(x), N number of line of Array

pointplot(ef);

Thanks in advance

Kamel

Please Wait...