Select only certain columns to plot using data header

Have a suggestion for improving DPlot or a question about existing features? Let us know
Post Reply
dcl9000
Posts: 26
Joined: Mon Mar 28, 2011 8:15 pm

Select only certain columns to plot using data header

Post 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!
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
dcl9000
Posts: 26
Joined: Mon Mar 28, 2011 8:15 pm

Post by dcl9000 »

OK. That works for me. Thanks!
Post Reply