Gnuplot: Improve column/probe name display.
This fixes incorrect probe name display if the user explicitly named probes via '-p 1=CLK' etc.
This commit is contained in:
parent
e734b81a68
commit
5f8c4cb363
|
@ -36,7 +36,8 @@ const char *gnuplot_header = "\
|
||||||
#\n\
|
#\n\
|
||||||
# Generated by: %s on %s%s\
|
# Generated by: %s on %s%s\
|
||||||
# Timescale: %d %s\n\
|
# Timescale: %d %s\n\
|
||||||
# Column assignment:\n%s\n";
|
# Column/probe assignment:\n\
|
||||||
|
# Column 0: Sample counter (for internal gnuplot purposes)\n%s\n";
|
||||||
|
|
||||||
const char *gnuplot_header_comment = "\
|
const char *gnuplot_header_comment = "\
|
||||||
# Comment: Acquisition with %d/%d probes at %s\n";
|
# Comment: Acquisition with %d/%d probes at %s\n";
|
||||||
|
@ -98,7 +99,7 @@ static int init(struct output *o)
|
||||||
wbuf[0] = '\0';
|
wbuf[0] = '\0';
|
||||||
for (i = 0; i < ctx->num_enabled_probes; i++) {
|
for (i = 0; i < ctx->num_enabled_probes; i++) {
|
||||||
c = (char *)&wbuf + strlen((char *)&wbuf);
|
c = (char *)&wbuf + strlen((char *)&wbuf);
|
||||||
sprintf(c, "# Column %d: channel %s\n", i, ctx->probelist[i]);
|
sprintf(c, "# Column %d: %s\n", i + 1, ctx->probelist[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: date: File or signals? Make y/n configurable. */
|
/* TODO: date: File or signals? Make y/n configurable. */
|
||||||
|
|
Loading…
Reference in New Issue