.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples\matplotlib\matplotlib_test.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. 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_matplotlib_matplotlib_test.py: Matplotlib Example ================== this is a basic example that should generate images in sphinx, but still imports pyspecdata .. GENERATED FROM PYTHON SOURCE LINES 6-33 .. rst-class:: sphx-glr-horizontal * .. image-sg:: /auto_examples/matplotlib/images/sphx_glr_matplotlib_test_001.png :alt: matplotlib test :srcset: /auto_examples/matplotlib/images/sphx_glr_matplotlib_test_001.png :class: sphx-glr-multi-img * .. image-sg:: /auto_examples/matplotlib/images/sphx_glr_matplotlib_test_002.png :alt: matplotlib test :srcset: /auto_examples/matplotlib/images/sphx_glr_matplotlib_test_002.png :class: sphx-glr-multi-img .. code-block:: default from pyspecdata import * from matplotlib.patches import Ellipse from numpy import * from matplotlib.pyplot import subplot, xlim, ylim delta = 45.0 # degrees angles = arange(0, 360+delta, delta) ells = [Ellipse((1, 1), 4, 2, a) for a in angles] a = subplot(111, aspect='equal') for e in ells: e.set_clip_box(a.bbox) e.set_alpha(0.1) a.add_artist(e) xlim(-2, 4) ylim(-1, 3) figure() b = subplot(111,aspect='equal') plot(r_[0:10]) show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.093 seconds) .. _sphx_glr_download_auto_examples_matplotlib_matplotlib_test.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: matplotlib_test.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: matplotlib_test.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_