|
3 | 3 | # eplot
|
4 | 4 | # Written by Christian Wolf
|
5 | 5 | #
|
6 |
| -# eplot ("easy gnuplot") is a shell script which allows to pipe data easily |
7 |
| -# through gnuplot and create plots quickly, which can be saved in postscript, |
8 |
| -# PDF, PNG or EMF files. Plotting of multiple files into a single diagram is |
9 |
| -# supported. |
| 6 | +# eplot ("easy gnuplot") is a shell script which allows to pipe data easily |
| 7 | +# through gnuplot and create plots quickly, which can be saved in postscript, |
| 8 | +# PDF, PNG, EMF or SVG files. Plotting of multiple files into a single diagram |
| 9 | +# is supported. |
10 | 10 | # **************************************************************************
|
11 | 11 | # This program is free software; you can redistribute it and/or modify
|
12 | 12 | # it under the terms of the GNU General Public License as published by
|
@@ -81,6 +81,7 @@ Output file format options:
|
81 | 81 | -p --postscript Output to the postscript file foo.ps
|
82 | 82 | -a --pdf Output to the pdf file foo.pdf
|
83 | 83 | -e --emf Output to the emf file foo.emf
|
| 84 | + -g --svg Output to the svg file foo.svg |
84 | 85 | -o <fname> Specify the output filename
|
85 | 86 | -d --dumb Output to dumb terminal (ascii art)
|
86 | 87 |
|
@@ -176,6 +177,10 @@ class OptionController
|
176 | 177 | com=com+"set terminal postscript color;\n"
|
177 | 178 | @o["DoPDF"]=true
|
178 | 179 |
|
| 180 | + # ---- Do we create SVG output? |
| 181 | + when /^-g$|^--svg$/ |
| 182 | + com=com+"set terminal svg;\n" |
| 183 | + |
179 | 184 | # ---- Specify a custom output file
|
180 | 185 | when /^-o$|^--output$/
|
181 | 186 | @o["OutputFileSpecified"]=checkOptArg(xargv,i)
|
|
0 commit comments