Page 1 of 1

Adding extra notes into a .grf file

Posted: Tue Nov 10, 2020 4:55 pm
by mikeb
David,
Since .grf files are ASCII text, can I store/insert my own notes into a .grf file?
As a test, I copied Z-axis text from a contour plot .grf and pasted the 'Y2Axis' and following title text line into a 1D line scan .grf before the 'STOP' line, and it didn't seem to adversely affect it.

Are there any keywords that I should use or avoid?
Does it matter if I add it before or after the "STOP" ? Would any text appended after STOP be safe/acceptable?

I am trying to capture user annotations to store with the data files as they are collected.

Posted: Wed Nov 11, 2020 8:40 am
by DPlotAdmin
Are there any keywords that I should use or avoid?
Those listed here: https://www.dplot.com/help/index.htm?dp ... ifiers.htm shouldn't be used.
Does it matter if I add it before or after the "STOP" ?
After is better, Otherwise you may get an "unrecognized keyword" error.
Would any text appended after STOP be safe/acceptable?
Yes. What you're doing is the reason it was added.

Posted: Wed Nov 11, 2020 9:24 am
by mikeb
Perfect!
So Y2Axis is a recognized keyword, even though the graph type doesn't use it.
Thanks!
mike