From 8656a71790133d4de42252a1e75b4209c03b4983 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 27 Jan 2015 09:00:34 +0100 Subject: [PATCH] output/gnuplot: Use .dat as suggested file extension. Gnuplot doesn't have any "official" file name extension(s). It uses (at least) two different types of files basically: - "control files": These can have many different somewhat commonly used extensions such as .gpi, .gnu, .gnuplot, .gp, .plt, .gih, others. These files don't contain data, only Gnuplot commands such as 'set yrange [75:105]', 'set ylabel "foo" offset 1', and so on. - "data files": This is what libsigrok reads and writes. These files contain actual data to be graphed by Gnuplot (with the help of a specially-crafted control file, see above). The data is usually in a tab-separated format. The common file extension is usually .dat, though many others are possible as well. --- src/output/gnuplot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/gnuplot.c b/src/output/gnuplot.c index 134fd904..631fefda 100644 --- a/src/output/gnuplot.c +++ b/src/output/gnuplot.c @@ -220,8 +220,8 @@ static int cleanup(struct sr_output *o) SR_PRIV struct sr_output_module output_gnuplot = { .id = "gnuplot", .name = "Gnuplot", - .desc = "Gnuplot file format", - .exts = (const char*[]){"pl", NULL}, + .desc = "Gnuplot data file format", + .exts = (const char*[]){"dat", NULL}, .options = NULL, .init = init, .receive = receive,