Hi,
For the first question, in Origin 8.0, to plot your data as your want, first highlight your Y column and then use your script
work -p 200
As an alternative option, you may use the script:
plotxy 2 200
,in which 2 indicates your y column index, and 200 is the plot type ID for lines.
For the second one, you may use the following script:
plotxy (1,2) plot:=200 ogl:=[<new template:=LINE name:=MyLineGraph>]
in which (1,2) stands for your input XY range, 200 stands for your plot type ID, and you should replace "LINE" with the name of your template, and the graph window is named as MyLineGraph
You may refer to more detailed information from the following link of our online help file:
http://www.originlab.com/www/helponline/Origin/en/Programming/mergedProjects/X-Function/X-Function/Plotxy.html
Kathy
Originlab