:orphan: Code samples for Matplotlib ---------------------------- The examples here are only examples relevant to the points raised in this chapter. The matplotlib documentation comes with a much more exhaustive `gallery `__. .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_pie_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_pie.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_pie .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_good_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_good.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_good .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_scatter_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_scatter.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_scatter .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_multiplot_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_multiplot.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_multiplot .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_bad_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_bad.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_bad .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_axes_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_axes.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_axes .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_subplot-horizontal_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_subplot-horizontal.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_subplot-horizontal .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_subplot-vertical_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_subplot-vertical.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_subplot-vertical .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_plot3d_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_plot3d.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_plot3d .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_imshow_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_imshow.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_imshow .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_quiver_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_quiver.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_quiver .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_polar_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_polar.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_polar .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_contour_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_contour.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_contour .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_ugly_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_ugly.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_ugly .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_plot_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_plot.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_plot .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_bar_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_bar.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_bar .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_subplot-grid_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_subplot-grid.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_subplot-grid .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_axes-2_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_axes-2.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_axes-2 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_grid_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_grid.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_grid .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_plot3d-2_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_plot3d-2.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_plot3d-2 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_gridspec_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_gridspec.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_gridspec .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/images/thumb/sphx_glr_plot_text_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_plot_text.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/plot_text .. raw:: html
Code for the chapter's exercises -------------------------------- .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_1_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_1.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_1 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_4_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_4.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_4 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_3_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_3.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_3 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_5_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_5.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_5 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_6_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_6.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_6 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_2_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_2.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_2 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_7_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_7.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_7 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_8_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_8.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_8 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_9_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_9.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_9 .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/exercises/images/thumb/sphx_glr_plot_exercise_10_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_exercises_plot_exercise_10.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/exercises/plot_exercise_10 .. raw:: html
Example demoing choices for an option -------------------------------------- .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_color_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_color.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_color .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_linewidth_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_linewidth.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_linewidth .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_alpha_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_alpha.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_alpha .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_aliased_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_aliased.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_aliased .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_antialiased_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_antialiased.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_antialiased .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_ms_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_ms.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_ms .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_mew_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_mew.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_mew .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_mec_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_mec.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_mec .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_mfc_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_mfc.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_mfc .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_colormaps_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_colormaps.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_colormaps .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_solid_capstyle_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_solid_capstyle.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_solid_capstyle .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_solid_joinstyle_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_solid_joinstyle.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_solid_joinstyle .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_dash_capstyle_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_dash_capstyle.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_dash_capstyle .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_dash_joinstyle_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_dash_joinstyle.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_dash_joinstyle .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_linestyles_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_linestyles.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_linestyles .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_markers_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_markers.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_markers .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/options/images/thumb/sphx_glr_plot_ticks_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_options_plot_ticks.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/options/plot_ticks .. raw:: html
Code generating the summary figures with a title ------------------------------------------------- .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_polar_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_polar_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_polar_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_plot3d_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_plot3d_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_plot3d_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_plot_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_plot_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_plot_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_multiplot_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_multiplot_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_multiplot_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_boxplot_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_boxplot_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_boxplot_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_scatter_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_scatter_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_scatter_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_pie_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_pie_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_pie_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_bar_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_bar_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_bar_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_quiver_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_quiver_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_quiver_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_imshow_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_imshow_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_imshow_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_contour_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_contour_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_contour_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_grid_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_grid_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_grid_ext .. raw:: html
.. only:: html .. figure:: /intro/matplotlib/auto_examples/pretty_plots/images/thumb/sphx_glr_plot_text_ext_thumb.png :ref:`sphx_glr_intro_matplotlib_auto_examples_pretty_plots_plot_text_ext.py` .. raw:: html
.. toctree:: :hidden: /intro/matplotlib/auto_examples/pretty_plots/plot_text_ext .. raw:: html
.. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-gallery .. container:: sphx-glr-download :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_