.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_with_image.py: Example with image ================== Another illustration. .. image:: /auto_examples/images/sphx_glr_with_image_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 6.0 [] | .. code-block:: default from __future__ import print_function from sample_module.mod1 import Class1 from matplotlib import pyplot c = Class1() r = c.a_method(1., 2., 3) print(r) pyplot.plot([1,2,3], [2.5, 0.5, 4.6]) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.114 seconds) .. _sphx_glr_download_auto_examples_with_image.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: with_image.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: with_image.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_