

.. _sphx_glr_gallery_pyplots_fig_x.py:


=====
Fig X
=====





.. image:: /gallery/pyplots/images/sphx_glr_fig_x_001.png
    :align: center





.. code-block:: python

    import numpy as np
    import matplotlib.pyplot as plt
    import matplotlib.lines as lines


    fig = plt.figure()

    l1 = lines.Line2D([0, 1], [0, 1], transform=fig.transFigure, figure=fig)

    l2 = lines.Line2D([0, 1], [1, 0], transform=fig.transFigure, figure=fig)

    fig.lines.extend([l1, l2])

    plt.show()

**Total running time of the script:** ( 0 minutes  0.001 seconds)



.. container:: sphx-glr-footer


  .. container:: sphx-glr-download

     :download:`Download Python source code: fig_x.py <fig_x.py>`



  .. container:: sphx-glr-download

     :download:`Download Jupyter notebook: fig_x.ipynb <fig_x.ipynb>`

.. rst-class:: sphx-glr-signature

    `Generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
