Skip to content

Commit 530bc46

Browse files
committed
Add support for SVG output
1 parent a656036 commit 530bc46

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

eplot

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# eplot
44
# Written by Christian Wolf
55
#
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.
1010
# **************************************************************************
1111
# This program is free software; you can redistribute it and/or modify
1212
# it under the terms of the GNU General Public License as published by
@@ -81,6 +81,7 @@ Output file format options:
8181
-p --postscript Output to the postscript file foo.ps
8282
-a --pdf Output to the pdf file foo.pdf
8383
-e --emf Output to the emf file foo.emf
84+
-g --svg Output to the svg file foo.svg
8485
-o <fname> Specify the output filename
8586
-d --dumb Output to dumb terminal (ascii art)
8687
@@ -176,6 +177,10 @@ class OptionController
176177
com=com+"set terminal postscript color;\n"
177178
@o["DoPDF"]=true
178179

180+
# ---- Do we create SVG output?
181+
when /^-g$|^--svg$/
182+
com=com+"set terminal svg;\n"
183+
179184
# ---- Specify a custom output file
180185
when /^-o$|^--output$/
181186
@o["OutputFileSpecified"]=checkOptArg(xargv,i)

0 commit comments

Comments
 (0)