<div dir="ltr">I'm using kst V2.0.8 on Windows 7, 64-bit.<div>When I do --help, I get a pop-up window that shows only:<br><span style="font-family:monospace;font-size:10.4px">KST Command Line Usage </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">************************ </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">*** Load a kst file: *** </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">kst [OPTIONS] kstfile </span><br style="font-family:monospace;font-size:10.4px"><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">[OPTIONS] will override the datasource parameters for all data sources in the kst file: </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> -F <datasource> </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> -f <startframe> </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> -n <numframes> </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> -s <frames per sample> </span><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px"> -a (apply averaging filter: requires -s) </span><br style="font-family:monospace;font-size:10.4px"><br style="font-family:monospace;font-size:10.4px"><span style="font-family:monospace;font-size:10.4px">************************ </span><br style="font-family:monospace;font-size:10.4px"></div><div><span style="font-family:monospace;font-size:10.4px"><br></span></div><div><font face="arial, helvetica, sans-serif">it *does* have a "Show Details..." button, but that opens up help in a 5-line scrolling window, but it's rather hard to read. Actually, I probably could copy-and-paste that window into a doc, but I ended up getting the data from somewhere else...</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 4:06 PM, Barth Netterfield <span dir="ltr"><<a href="mailto:netterfield@astro.utoronto.ca" target="_blank">netterfield@astro.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hmmm... What version of kst are you using? what platform?<div><br></div><div>I am on Linux. </div><div><br></div><div>For a reasonably recent version of kst2:<br></div><div><br></div><div>If I have files d1.dat, d2.dat, and d3.dat. Each are 2 column data, delimited to whatever you have set the default to in the gui. (by default, this is space).</div><div><br></div><div> $ <span style="font-family:monospace"><span style="color:rgb(0,0,0)">kst2 -P 1 d1.dat -x 1 -y 2 d2.dat -x 1 -y 2 d3.dat -x 1 -y 2</span><br></span><div><br></div><div>will put all three curves in the same plot</div><div><br></div><div>Whe I try kst2 --help, I get: </div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">$ kst2 --help
</span><br>KST Command Line Usage
<br>************************
<br>*** Load a kst file: ***
<br>kst [OPTIONS] kstfile
<br>
<br>[OPTIONS] will override the datasource parameters for all data sources in the kst file:
<br> -F <datasource>
<br> -f <startframe>
<br> -n <numframes>
<br> -s <frames per sample>
<br> -a (apply averaging filter: requires -s)
<br>
<br>************************
<br>*** Read a data file ***
<br>kst datasource OPTIONS [datasource OPTIONS []]
<br>
<br>OPTIONS are read and interpreted in order. Except for data object options, all are applied to all future data objects, unless later overridden.
<br>Output Options:
<br> --print <filename> Print to file and exit.
<br> --landscape Print in landscape mode.
<br> --portrait Print in portrait mode.
<br> --Letter Print to Letter sized paper.
<br> --A4 Print to A4 sized paper.
<br> --png <filename> Render to a png image, and exit.
<br>File Options:
<br> -f <startframe> default: 'end' counts from end.
<br> -n <numframes> default: 'end' reads to end of file
<br> -s <frames per sample> default: 0 (read every sample)
<br> -a apply averaging filter: requires -s
<br>
<br>Ascii File Options - for ascii files only: these are all stick
<br> --asciiDataStart <Line> Data starts here. Files start at line 1.
<br> --asciiFieldNames <Line> Field names are in this row.
<br> --asciiNoFieldNames Fields are named for their data column
<br> --asciiReadUnits <Line> Read units from line <Line>
<br> --asciiNoUnits Do not read units
<br> --asciiSpaceDelim Columns are Space/tab delimited
<br> --asciiDelim <char> Columns are dlimited with <char>
<br> --asciiFixedWidth <w> Columns have width <w>
<br> --asciiNoFixedWidth Columns are delimited, not fixed width
<br> --asciiDecimalDot Use a . as a decimal separator (ie, 10.1)
<br> --asciiDecimalComma Use a , as a decimal separator (ie, 10,1)
<br>Position:
<br> -P <plot name>: Place curves in one plot.
<br> -A Place future curves in individual plots.
<br> -m <columns> Layout plots in columns
<br> -T <tab name> Place future curves a new tab.
<br>Appearance
<br> -d: use points for the next curve
<br> -l: use lines for the next curve
<br> -b: use bargraph for the next curve
<br> --xlabel <X Label> Set X label of all future plots.
<br> --ylabel <Y Label> Set Y label of all future plots.
<br> --xlabelauto AutoSet X label of all future plots.
<br> --ylabelauto AutoSet Y label of all future plots.
<br>Data Object Modifiers
<br> -x <field>: Create vector and use as X vector for curves.
<br> -e <field>: Create vector and use as Y-error vector for next -y.
<br> -r <rate>: sample rate (spectra & spectograms).
<br>Data Objects:
<br> -y <field> plot an XY curve of field.
<br> -p <field> plot the spectrum of field.
<br> -h <field> plot a histogram of field.
<br> -z <field> plot an image of matrix field.
<br>
<br>****************
<br>*** Examples ***
<br>
<br>Data sources and fields:
<br>Plot all data in column 2 from data.dat.
<br> kst data.dat -y 2
<br>
<br>Same as above, except only read 20 lines, starting at line 10.
<br> kst data.dat -f 10 -n 20 -y 2
<br>
<br>... also read col 1. One plot per curve.
<br> kst data.dat -f 10 -n 20 -y 1 -y 2
<br>
<br>Read col 1 from data2.dat and col 1 from data.dat
<br> kst data.dat -f 10 -n 20 -y 2 data2.dat -y 1
<br>
<br>Same as above, except read 40 lines starting at 30 in data2.dat
<br> kst data.dat -f 10 -n 20 -y 2 data2.dat -f 30 -n 40 -y 1
<br>
<br>Specify the X vector and error bars:
<br>Plot x = col 1 and Y = col 2 and error flags = col 3 from data.dat
<br> kst data.dat -x 1 -e 3 -y 2
<br>
<br>Get the X vector from data1.dat, and the Y vector from data2.dat.
<br> kst data1.dat -x 1 data2.dat -y 1
<br>
<br>Placement:
<br>Plot column 2 and column 3 in plot P1 and column 4 in plot P2
<br> kst data.dat -P P1 -y 2 -y 3 -P P2 -y 4
<br><br>
<br></span></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 6:59 PM, Daniel Miller <span dir="ltr"><<a href="mailto:dmiller@vitalconnect.com" target="_blank">dmiller@vitalconnect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would appreciate the command-line args to handle plotting multiple files; the --help argument only documents 5 arguments, and doesn't even work the way it is documented... I found a more complete command-line help in the Kst Handbook, but task like these aren't all that obvious...<div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 3:52 PM, Barth Netterfield <span dir="ltr"><<a href="mailto:netterfield@astro.utoronto.ca" target="_blank">netterfield@astro.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes: <div>the last page of the data wizard gives an option to put the curve in a plot that already exists.</div><div>The curve creation dialog has an option to put the curve in a plot that already exists.</div><div>You can do it from the command line even easier. I can give you the incantation if you can't clean it from kst2 --help.</div><div><br></div><div>cbn</div><div><div><div><br><div><br><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 6:36 PM, Daniel Miller <span dir="ltr"><<a href="mailto:dmiller@vitalconnect.com" target="_blank">dmiller@vitalconnect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hmmm... well, I prefer lines to points in kst2; the plots with points are sort of hard to utilize, but I'll take a look at it and see what it looks like.<div><br></div><div>Alternately, is there some way to input three data files, but have them plotted on one plot?? I haven't really seen that in the manual either...</div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 3, 2016 at 3:33 PM, Barth Netterfield <span dir="ltr"><<a href="mailto:netterfield@astro.utoronto.ca" target="_blank">netterfield@astro.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As you have sort of figured out, kst's data source model will want you to have 3 different ascii files in this case.<div><br></div><div>But, if you just want to plot points, and not lines, you can use NaN as your bad data marker.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Feb 3, 2016 at 6:30 PM, Daniel Miller <span dir="ltr"><<a href="mailto:dmiller@vitalconnect.com" target="_blank">dmiller@vitalconnect.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I have kst2 working with single plot stream... that works very nicely. At this point, I'm using space as separator between fields.<div><br></div><div>However, we have a couple of data streams which contain multiple data (x, y, z); in this situation, what our data would look like is ( timestamp, data), but the data would be one of { data_x, data_y, data_z }. In other words, the data stream that I receive from the hardware, delivers data_x, data_y, data_z in separate messages, with different timestamps.</div><div><br></div><div>I want kst2 to read this ascii data file and plot 3 separate graphs on one plot. </div><div>I'm a little confused about how to do this, though; </div><div><br></div><div>for example, say I have a line with data for data_z; this will look something like:</div><div>timestamp data_z </div><div>however, I want one file to contain data for all three streams, so I'm guessing I need to have empty fields for the not-relevant data; maybe something like:</div><div>timestamp unused_x unused_y data_z</div><div>timestamp unused_x data_y unused_z</div><div>etc...</div><div><br></div><div>So first off, I probably have to use a different separator rather than space for separator; but even with comma, I still have a problem; for example:</div><div><br></div><div>timestamp, 0, 0, data_z</div><div>timestamp, 0, data_y, 0</div><div><br></div><div>Except that in some cases, 0 is valid data; I *think* I need some way to represent "invalid data" in the unused fields.</div><div><br></div><div>Is this understandable?? How do I handle this??</div><div>Dan Miller</div></div>
<br></div></div>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C. Barth Netterfield<br>University of Toronto<br><a href="tel:416-845-0946" value="+14168450946" target="_blank">416-845-0946</a></span><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br></span></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C. Barth Netterfield<br>University of Toronto<br><a href="tel:416-845-0946" value="+14168450946" target="_blank">416-845-0946</a></span><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br></span></div></div>
</div></div></div></div></div></div>
<br>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org" target="_blank">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)">C. Barth Netterfield<br>University of Toronto<br><a href="tel:416-845-0946" value="+14168450946" target="_blank">416-845-0946</a></span><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(136,136,136)"><br></span></div></div>
</div>
</div></div><br>_______________________________________________<br>
Kst mailing list<br>
<a href="mailto:Kst@kde.org">Kst@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kst" rel="noreferrer" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br>
<br></blockquote></div><br></div>