Document save_svg window's method - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年11月05日 23:09:07 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年11月05日 23:09:07 +0100
commit870dd15647f1bdc690ea8d0bb7cb13e76568b4cb (patch)
treeb0d8c39979f294e63e09d687bdedacfc3f4dae4b
parent27daeb255ca7b9035881b0f995fbfe4986bfc37c (diff)
downloadgsl-shell-870dd15647f1bdc690ea8d0bb7cb13e76568b4cb.tar.gz
Document save_svg window's method
Diffstat
-rw-r--r--doc/user-manual/graphics.rst 6
-rw-r--r--help/graphics.lua 9
2 files changed, 15 insertions, 0 deletions
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])
generated by cgit v1.2.3 (git 2.39.1) at 2025年10月01日 15:07:42 +0000

AltStyle によって変換されたページ (->オリジナル) /