Drag and drop to plot multi-column data
Posted: Mon Mar 28, 2011 8:41 pm
Hi!
I have a simple multi-column data file like this:
X Y1 Y2 Y3 Y4
1 2 3 4 5
2 4 6 8 10
3 6 9 12 18
It is saved as a text file named "data.txt"
Everytime when I drag and drop this file into a opened empty DPlot Viewer, it always plot 5 curves instead of 4. The first column is always recognized as a Y-column instead of an X-column.
I've set the "Pick Columns to Plot" and assign column-1 manually to plot as what was described in the previous subject (http://www.dplot.com/forums/viewtopic.p ... =drag+drop). It works fine and plot 4 curves correctly if the DPlot Viewer is not closed. But when DPlot Viewer is closed and re-opened, this problem comes up again. It is not persistent at all.
Is there a way to add a format line (something like XYY) somewhere in this simple data file to tell DPlot Viewer to plot it correctly? I know in the help file it says DPlot uses the first column as X-column by default, but it doesn't when you use "drag and drop" to plot the simple data format. Could you please fix this problem? Many thanks!
I have a simple multi-column data file like this:
X Y1 Y2 Y3 Y4
1 2 3 4 5
2 4 6 8 10
3 6 9 12 18
It is saved as a text file named "data.txt"
Everytime when I drag and drop this file into a opened empty DPlot Viewer, it always plot 5 curves instead of 4. The first column is always recognized as a Y-column instead of an X-column.
I've set the "Pick Columns to Plot" and assign column-1 manually to plot as what was described in the previous subject (http://www.dplot.com/forums/viewtopic.p ... =drag+drop). It works fine and plot 4 curves correctly if the DPlot Viewer is not closed. But when DPlot Viewer is closed and re-opened, this problem comes up again. It is not persistent at all.
Is there a way to add a format line (something like XYY) somewhere in this simple data file to tell DPlot Viewer to plot it correctly? I know in the help file it says DPlot uses the first column as X-column by default, but it doesn't when you use "drag and drop" to plot the simple data format. Could you please fix this problem? Many thanks!