Question: plot structure


I have the following script 

Download display_plot_-plot_s.mw

, where i tried to import two collumns of data from excel, what am i suppose to put after "display" to obtain the plot?

restart:with(Statistics):  with(ExcelTools): Data := Import("c:\\my folder\\Book1.xls");

(1)

V, C := Data[.., 1], Data[.., 2];

(2)

 

pp:=pointplot(V,C,symbolsize=5,color=green):

 

answer1 := Fit(a*x^n+b*x+c, V, C, x);

(3)

p1 := plot(answer1, x = 0 .. 10);

(4)

with(plots):

display(pp,p1);

Error, (in plots:-display) expecting plot structure but received: pointplot(Array(1..18, {(1) = 0.1757488e-2, (2) = 1.007989, (3) = 2.010982, (4) = 3.014348, (5) = 4.020584, (6) = 5.023558, (7) = 6.029602, (8) = 7.032205, (9) = 8.035038, (10) = 9.041249, (11) = 10.04456, (12) = 11.05089, (13) = 12.05386, (14) = 13.05699, (15) = 14.06474, (16) = 15.06929, (17) = 16.07686, (18) = 17.08172}), Array(1..18, {(1) = 0.2605711e-11, (2) = 0.1622541e-9, (3) = 0.3040835e-9, (4) = 0.4290568e-9, (5) = 0.5583454e-9, (6) = 0.6814651e-9, (7) = 0.8124977e-9, (8) = 0.924913e-9, (9) = 0.1050371e-8, (10) = 0.1166342e-8, (11) = 0.128928e-8, (12) = 0.1399596e-8, ...

 

 

 

An old script i have, where i copied and paste the data from excel does not seem to give the problem. working_plot_and_fit.mw



Please Wait...