.. _sphx_glr_auto_examples_plot_svg.py: svg === Create graphical elements using svg syntax. To make svg writing easier, shortcuts module have been created to draw (line, rectangle, grid) .. code-block:: python from beampy import * # Remove quiet=True to get Beampy render outputs doc = document(quiet=True) with slide('Svg'): svg('', y='center') svg(""" """, x='center', y='center') display_matplotlib(gcs()) .. image:: /auto_examples/images/sphx_glr_plot_svg_001.png :align: center Module arguments ================ .. autoclass:: beampy.svg :noindex: .. only :: html .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_svg.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_svg.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_