Search code examples
plotidl-programming-language

(Over)plotting points on a line plot


I am trying to plot individual data points on a line plot I already made as follows:

p=plot('3.29*exp(-17.4*(x^2))-0.908',xrange=[0.,1.],yrange=[-1.,1.5])

I first tried overplotting a point like this but nothing appears on the graph

estimate1=plot([0.549],[0.755],overplot=1)

When I give the plot function two points to overplot by adding another set of x and y values in input vectors, it connects them.

estimate=plot([0.349,0.9595],[0.555,0.9995],overplot=1)

How can I (over)plot the points without them being connected? enter image description here


Solution

  • You should be able to set linestyle = 6 which will plot without the line.