.. _sphx_glr_auto_examples_plot_line.py: line ==== Easiest way to create lines in svg rather than using the :py:mod:beampy.svg. .. code-block:: python from beampy import * # Remove quiet=True to get Beampy render outputs doc = document(quiet=True) with slide('Svg: Line'): line(800-20, 600-50, x=20, y=50, color='red') hline(300, color='orange', linewidth='4px') vline(400, color='crimson', linewidth='10px', opacity=0.5) display_matplotlib(gcs()) .. image:: /auto_examples/images/sphx_glr_plot_line_001.png :align: center Module arguments ================ .. autoclass:: beampy.line :noindex: .. autofunction:: beampy.hline :noindex: .. autofunction:: beampy.vline :noindex: .. only :: html .. container:: sphx-glr-footer .. container:: sphx-glr-download :download:`Download Python source code: plot_line.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_line.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_