From 530bc46fb32a09e75c6dc2a0c53b5dd57ba37d2e Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Mon, 3 Sep 2018 12:42:40 +0100 Subject: [PATCH] Add support for SVG output --- eplot | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/eplot b/eplot index 81748e0..300f40e 100755 --- a/eplot +++ b/eplot @@ -3,10 +3,10 @@ # eplot # Written by Christian Wolf # -# eplot ("easy gnuplot") is a shell script which allows to pipe data easily -# through gnuplot and create plots quickly, which can be saved in postscript, -# PDF, PNG or EMF files. Plotting of multiple files into a single diagram is -# supported. +# eplot ("easy gnuplot") is a shell script which allows to pipe data easily +# through gnuplot and create plots quickly, which can be saved in postscript, +# PDF, PNG, EMF or SVG files. Plotting of multiple files into a single diagram +# is supported. # ************************************************************************** # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -81,6 +81,7 @@ Output file format options: -p --postscript Output to the postscript file foo.ps -a --pdf Output to the pdf file foo.pdf -e --emf Output to the emf file foo.emf + -g --svg Output to the svg file foo.svg -o Specify the output filename -d --dumb Output to dumb terminal (ascii art) @@ -176,6 +177,10 @@ class OptionController com=com+"set terminal postscript color;\n" @o["DoPDF"]=true + # ---- Do we create SVG output? + when /^-g$|^--svg$/ + com=com+"set terminal svg;\n" + # ---- Specify a custom output file when /^-o$|^--output$/ @o["OutputFileSpecified"]=checkOptArg(xargv,i)