View previous topic :: View next topic |
Author |
Message |
dcl9000
Joined: 28 Mar 2011 Posts: 26
|
Posted: Tue Nov 22, 2011 4:59 pm Post subject: Select only certain columns to plot using data header |
|
|
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! |
|
Back to top |
|
|
DPlotAdmin Site Admin
Joined: 24 Jun 2003 Posts: 2310 Location: Vicksburg, Mississippi
|
Posted: Tue Nov 22, 2011 5:16 pm Post subject: |
|
|
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?columnsarecommand.htm
For example ColumnsAre(0,1,3,4) will duplicate your example. _________________ Visualize Your Data
support@dplot.com |
|
Back to top |
|
|
dcl9000
Joined: 28 Mar 2011 Posts: 26
|
Posted: Wed Nov 23, 2011 5:14 pm Post subject: |
|
|
OK. That works for me. Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|