author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月05日 23:09:07 +0100 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年11月05日 23:09:07 +0100 |
commit | 870dd15647f1bdc690ea8d0bb7cb13e76568b4cb (patch) | |
tree | b0d8c39979f294e63e09d687bdedacfc3f4dae4b | |
parent | 27daeb255ca7b9035881b0f995fbfe4986bfc37c (diff) | |
download | gsl-shell-870dd15647f1bdc690ea8d0bb7cb13e76568b4cb.tar.gz |
-rw-r--r-- | doc/user-manual/graphics.rst | 6 | ||||
-rw-r--r-- | help/graphics.lua | 9 |
diff --git a/doc/user-manual/graphics.rst b/doc/user-manual/graphics.rst index bd750942..1a388d0e 100644 --- a/doc/user-manual/graphics.rst +++ b/doc/user-manual/graphics.rst @@ -347,6 +347,12 @@ Window class w:attach(p1, '1,1') -- attach plot "p1" to a the lower left subwindow w:attach(p1, '2') -- attach plot "p2" to a the upper subwindow + .. method:: save_svg(filename, width, height) + + Save the content of the window in the given filename in SVG format. + Two optional parameters can be given to specify the width and height of the drawing area. + If the "svg" extension is not given it will be automatically added. + .. _layout-string: Layout string diff --git a/help/graphics.lua b/help/graphics.lua index adfbafa9..7e1b9e52 100644 --- a/help/graphics.lua +++ b/help/graphics.lua @@ -121,6 +121,15 @@ graph.window([layout]) chosen recursively. ]], + [Window.save_svg] = [[ +<window>:save_svg(filename[, width, height]) + + Save the content of the window in the given filename in SVG format. + Two optional parameters can be given to specify the width and + height of the drawing area. If the "svg" extension is not given it + will be automatically added. +]], + [graph.plot] = [[ graph.plot([title]) |