DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Select only certain columns to plot using data header

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Tue Nov 22, 2011 4:59 pm    Post subject: Select only certain columns to plot using data header Reply with quote

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
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Nov 22, 2011 5:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dcl9000



Joined: 28 Mar 2011
Posts: 26

PostPosted: Wed Nov 23, 2011 5:14 pm    Post subject: Reply with quote

OK. That works for me. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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