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.
This commit is contained in:
Uwe Hermann 2015-01-27 09:00:34 +01:00
parent 4fb0a5f8a0
commit 8656a71790
1 changed files with 2 additions and 2 deletions

View File

@ -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,