From: Uwe Hermann Date: Tue, 27 Jan 2015 08:00:34 +0000 (+0100) Subject: output/gnuplot: Use .dat as suggested file extension. X-Git-Tag: libsigrok-0.4.0~666 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8656a71790133d4de42252a1e75b4209c03b4983;p=libsigrok.git 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. --- 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,