Then, you can use a combo condition as below:
wks.col1.filter = 1; //Enable a filter
wks.col1.filterx$ = "XC"; // variable name we will use
wks.col1.filter$ = "XC=0 OR XC=5"; // our filter condition
wks.runfilter(); //run the filter
to filter the values, and then use plotgroup X-Function to plot the values into two lines by selecting filtered Col(A) as group data:
plotgroup iy:=(2,3) dgrp:=1;
http://www.originlab.com/doc/X-Function/ref/plotgroup
Thanks,
Shirley
Originlab Technical Service Team