From 1cf6f637092d2c58baab5895cefe170909d09e49 Mon Sep 17 00:00:00 2001 From: Liam Toney <38269494+liamtoney@users.noreply.github.com> Date: Fri, 1 Nov 2019 01:04:35 -0800 Subject: [PATCH] Document using a list for repeated arguments (#361) E.g. frame=["+Loleron", "xaf", "y+lm"] --- examples/tutorials/first-figure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/tutorials/first-figure.py b/examples/tutorials/first-figure.py index 0dda1d6ff53..44d48f86d2b 100644 --- a/examples/tutorials/first-figure.py +++ b/examples/tutorials/first-figure.py @@ -78,6 +78,7 @@ # between the GMT arguments and their Python counterparts should be straight forward. # 3. Arguments like ``region`` can take lists as well as strings like ``1/2/3/4``. # 4. If a GMT argument has no options (like ``-B`` instead of ``-Baf``), use a ``True`` -# in Python. An empty string would also be acceptable. +# in Python. An empty string would also be acceptable. For repeated arguments, such +# as ``-B+Loleron -Bxaf -By+lm``, provide a list: ``frame=["+Loleron", "xaf", "y+lm"]``. # 5. There is no output redirecting to a PostScript file. The figure is generated in the # background and will only be shown or saved when you ask for it.