Page 1 of 1

Select only certain columns to plot using data header

Posted: Tue Nov 22, 2011 4:59 pm
by dcl9000
Hi!

Could you please implement a header command that tells DPlot to plot only certain selected columns when opening a data file? Instead of doing it manually using the "Pick Columns to Plot" check box, a command line in the header portion of a data file should let DPlot do it automatically. Such as this data file:
--------------------------------------------------------
Plot Title1
Plot Title2
Plot Title3

command header "X??YY"

X (nm) Y1 Y2 Y3 Y4
1.2, 1.4, 6, 9, 15
2.6, 4, 16.2 , 4, 2
3.9, 16.2, 9 , 12 , 10.2
--------------------------------------------------------

The command header "X??YY" tells DPlot to plot only the Y3 and Y4 columns but ignore Y1 and Y2 columns.

Thanks!

Posted: Tue Nov 22, 2011 5:16 pm
by DPlotAdmin
That would be easy enough for me, but for you... not so much. You'd presumably need to edit all the files you want to do this with, which doesn't sound pleasant to me.

You can do what you want with a ColumnsAre macro command and not require any changes to your data files. See http://www.dplot.com/help/index.htm?col ... ommand.htm

For example ColumnsAre(0,1,3,4) will duplicate your example.

Posted: Wed Nov 23, 2011 5:14 pm
by dcl9000
OK. That works for me. Thanks!