:orphan:
.. _examples-index:
.. _gallery:
========
Examples
========
This page contains example plots. Click on any image to see the full image
and source code.
For longer tutorials, see our `tutorials page <../tutorials/index.html>`_.
You can also find `external resources <../users/resources/index.html>`_ and
a `FAQ <../users/faq/index.html>`_ in our `user guide <../users/index.html>`_.
.. raw:: html
.. raw:: html
Lines, bars and markers
=======================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_bar_colors_thumb.png
:alt: Bar color demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_bar_colors.py`
.. raw:: html
Bar color demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_bar_label_demo_thumb.png
:alt: Bar Label Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_bar_label_demo.py`
.. raw:: html
Bar Label Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_bar_stacked_thumb.png
:alt: Stacked bar chart
:ref:`sphx_glr_gallery_lines_bars_and_markers_bar_stacked.py`
.. raw:: html
Stacked bar chart
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_barchart_thumb.png
:alt: Grouped bar chart with labels
:ref:`sphx_glr_gallery_lines_bars_and_markers_barchart.py`
.. raw:: html
Grouped bar chart with labels
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_barh_thumb.png
:alt: Horizontal bar chart
:ref:`sphx_glr_gallery_lines_bars_and_markers_barh.py`
.. raw:: html
Horizontal bar chart
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_broken_barh_thumb.png
:alt: Broken Barh
:ref:`sphx_glr_gallery_lines_bars_and_markers_broken_barh.py`
.. raw:: html
Broken Barh
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_capstyle_thumb.png
:alt: CapStyle
:ref:`sphx_glr_gallery_lines_bars_and_markers_capstyle.py`
.. raw:: html
CapStyle
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_categorical_variables_thumb.png
:alt: Plotting categorical variables
:ref:`sphx_glr_gallery_lines_bars_and_markers_categorical_variables.py`
.. raw:: html
Plotting categorical variables
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_cohere_thumb.png
:alt: Plotting the coherence of two signals
:ref:`sphx_glr_gallery_lines_bars_and_markers_cohere.py`
.. raw:: html
Plotting the coherence of two signals
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_csd_demo_thumb.png
:alt: CSD Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_csd_demo.py`
.. raw:: html
CSD Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_curve_error_band_thumb.png
:alt: Curve with error band
:ref:`sphx_glr_gallery_lines_bars_and_markers_curve_error_band.py`
.. raw:: html
Curve with error band
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_errorbar_limits_simple_thumb.png
:alt: Errorbar limit selection
:ref:`sphx_glr_gallery_lines_bars_and_markers_errorbar_limits_simple.py`
.. raw:: html
Errorbar limit selection
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_errorbar_subsample_thumb.png
:alt: Errorbar subsampling
:ref:`sphx_glr_gallery_lines_bars_and_markers_errorbar_subsample.py`
.. raw:: html
Errorbar subsampling
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_eventcollection_demo_thumb.png
:alt: EventCollection Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_eventcollection_demo.py`
.. raw:: html
EventCollection Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_eventplot_demo_thumb.png
:alt: Eventplot Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_eventplot_demo.py`
.. raw:: html
Eventplot Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_fill_thumb.png
:alt: Filled polygon
:ref:`sphx_glr_gallery_lines_bars_and_markers_fill.py`
.. raw:: html
Filled polygon
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_fill_between_alpha_thumb.png
:alt: Fill Between and Alpha
:ref:`sphx_glr_gallery_lines_bars_and_markers_fill_between_alpha.py`
.. raw:: html
Fill Between and Alpha
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_fill_between_demo_thumb.png
:alt: Filling the area between lines
:ref:`sphx_glr_gallery_lines_bars_and_markers_fill_between_demo.py`
.. raw:: html
Filling the area between lines
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_fill_betweenx_demo_thumb.png
:alt: Fill Betweenx Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_fill_betweenx_demo.py`
.. raw:: html
Fill Betweenx Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_filled_step_thumb.png
:alt: Hatch-filled histograms
:ref:`sphx_glr_gallery_lines_bars_and_markers_filled_step.py`
.. raw:: html
Hatch-filled histograms
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_gradient_bar_thumb.png
:alt: Bar chart with gradients
:ref:`sphx_glr_gallery_lines_bars_and_markers_gradient_bar.py`
.. raw:: html
Bar chart with gradients
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_hat_graph_thumb.png
:alt: Hat graph
:ref:`sphx_glr_gallery_lines_bars_and_markers_hat_graph.py`
.. raw:: html
Hat graph
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_horizontal_barchart_distribution_thumb.png
:alt: Discrete distribution as horizontal bar chart
:ref:`sphx_glr_gallery_lines_bars_and_markers_horizontal_barchart_distribution.py`
.. raw:: html
Discrete distribution as horizontal bar chart
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_joinstyle_thumb.png
:alt: JoinStyle
:ref:`sphx_glr_gallery_lines_bars_and_markers_joinstyle.py`
.. raw:: html
JoinStyle
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_line_demo_dash_control_thumb.png
:alt: Customizing dashed line styles
:ref:`sphx_glr_gallery_lines_bars_and_markers_line_demo_dash_control.py`
.. raw:: html
Customizing dashed line styles
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_lines_with_ticks_demo_thumb.png
:alt: Lines with a ticked patheffect
:ref:`sphx_glr_gallery_lines_bars_and_markers_lines_with_ticks_demo.py`
.. raw:: html
Lines with a ticked patheffect
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_linestyles_thumb.png
:alt: Linestyles
:ref:`sphx_glr_gallery_lines_bars_and_markers_linestyles.py`
.. raw:: html
Linestyles
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_marker_reference_thumb.png
:alt: Marker reference
:ref:`sphx_glr_gallery_lines_bars_and_markers_marker_reference.py`
.. raw:: html
Marker reference
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_markevery_demo_thumb.png
:alt: Markevery Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_markevery_demo.py`
.. raw:: html
Markevery Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_masked_demo_thumb.png
:alt: Plotting masked and NaN values
:ref:`sphx_glr_gallery_lines_bars_and_markers_masked_demo.py`
.. raw:: html
Plotting masked and NaN values
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_multicolored_line_thumb.png
:alt: Multicolored lines
:ref:`sphx_glr_gallery_lines_bars_and_markers_multicolored_line.py`
.. raw:: html
Multicolored lines
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_multivariate_marker_plot_thumb.png
:alt: Mapping marker properties to multivariate data
:ref:`sphx_glr_gallery_lines_bars_and_markers_multivariate_marker_plot.py`
.. raw:: html
Mapping marker properties to multivariate data
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_psd_demo_thumb.png
:alt: Psd Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_psd_demo.py`
.. raw:: html
Psd Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_custom_symbol_thumb.png
:alt: Scatter plots with custom symbols
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_custom_symbol.py`
.. raw:: html
Scatter plots with custom symbols
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_demo2_thumb.png
:alt: Scatter Demo2
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_demo2.py`
.. raw:: html
Scatter Demo2
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_hist_thumb.png
:alt: Scatter plot with histograms
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_hist.py`
.. raw:: html
Scatter plot with histograms
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_masked_thumb.png
:alt: Scatter Masked
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_masked.py`
.. raw:: html
Scatter Masked
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_star_poly_thumb.png
:alt: Marker examples
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_star_poly.py`
.. raw:: html
Marker examples
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_with_legend_thumb.png
:alt: Scatter plots with a legend
:ref:`sphx_glr_gallery_lines_bars_and_markers_scatter_with_legend.py`
.. raw:: html
Scatter plots with a legend
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_simple_plot_thumb.png
:alt: Simple Plot
:ref:`sphx_glr_gallery_lines_bars_and_markers_simple_plot.py`
.. raw:: html
Simple Plot
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_span_regions_thumb.png
:alt: Using span_where
:ref:`sphx_glr_gallery_lines_bars_and_markers_span_regions.py`
.. raw:: html
Using span_where
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_spectrum_demo_thumb.png
:alt: Spectrum Representations
:ref:`sphx_glr_gallery_lines_bars_and_markers_spectrum_demo.py`
.. raw:: html
Spectrum Representations
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_stackplot_demo_thumb.png
:alt: Stackplots and streamgraphs
:ref:`sphx_glr_gallery_lines_bars_and_markers_stackplot_demo.py`
.. raw:: html
Stackplots and streamgraphs
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_stairs_demo_thumb.png
:alt: Stairs Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_stairs_demo.py`
.. raw:: html
Stairs Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_stem_plot_thumb.png
:alt: Stem Plot
:ref:`sphx_glr_gallery_lines_bars_and_markers_stem_plot.py`
.. raw:: html
Stem Plot
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_step_demo_thumb.png
:alt: Step Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_step_demo.py`
.. raw:: html
Step Demo
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_timeline_thumb.png
:alt: Creating a timeline with lines, dates, and text
:ref:`sphx_glr_gallery_lines_bars_and_markers_timeline.py`
.. raw:: html
Creating a timeline with lines, dates, and text
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_vline_hline_demo_thumb.png
:alt: hlines and vlines
:ref:`sphx_glr_gallery_lines_bars_and_markers_vline_hline_demo.py`
.. raw:: html
hlines and vlines
.. raw:: html
.. only:: html
.. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_xcorr_acorr_demo_thumb.png
:alt: Cross- and Auto-Correlation Demo
:ref:`sphx_glr_gallery_lines_bars_and_markers_xcorr_acorr_demo.py`
.. raw:: html
Cross- and Auto-Correlation Demo
.. raw:: html
Images, contours and fields
===========================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_affine_image_thumb.png
:alt: Affine transform of an image
:ref:`sphx_glr_gallery_images_contours_and_fields_affine_image.py`
.. raw:: html
Affine transform of an image
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_barb_demo_thumb.png
:alt: Wind Barbs
:ref:`sphx_glr_gallery_images_contours_and_fields_barb_demo.py`
.. raw:: html
Wind Barbs
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_barcode_demo_thumb.png
:alt: Barcode
:ref:`sphx_glr_gallery_images_contours_and_fields_barcode_demo.py`
.. raw:: html
Barcode
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_colormap_interactive_adjustment_thumb.png
:alt: Interactive Adjustment of Colormap Range
:ref:`sphx_glr_gallery_images_contours_and_fields_colormap_interactive_adjustment.py`
.. raw:: html
Interactive Adjustment of Colormap Range
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_colormap_normalizations_thumb.png
:alt: Colormap Normalizations
:ref:`sphx_glr_gallery_images_contours_and_fields_colormap_normalizations.py`
.. raw:: html
Colormap Normalizations
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_colormap_normalizations_symlognorm_thumb.png
:alt: Colormap Normalizations SymLogNorm
:ref:`sphx_glr_gallery_images_contours_and_fields_colormap_normalizations_symlognorm.py`
.. raw:: html
Colormap Normalizations SymLogNorm
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_corner_mask_thumb.png
:alt: Contour Corner Mask
:ref:`sphx_glr_gallery_images_contours_and_fields_contour_corner_mask.py`
.. raw:: html
Contour Corner Mask
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_demo_thumb.png
:alt: Contour Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_contour_demo.py`
.. raw:: html
Contour Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_image_thumb.png
:alt: Contour Image
:ref:`sphx_glr_gallery_images_contours_and_fields_contour_image.py`
.. raw:: html
Contour Image
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contour_label_demo_thumb.png
:alt: Contour Label Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_contour_label_demo.py`
.. raw:: html
Contour Label Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_demo_thumb.png
:alt: Contourf Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_contourf_demo.py`
.. raw:: html
Contourf Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_hatching_thumb.png
:alt: Contourf Hatching
:ref:`sphx_glr_gallery_images_contours_and_fields_contourf_hatching.py`
.. raw:: html
Contourf Hatching
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contourf_log_thumb.png
:alt: Contourf and log color scale
:ref:`sphx_glr_gallery_images_contours_and_fields_contourf_log.py`
.. raw:: html
Contourf and log color scale
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_contours_in_optimization_demo_thumb.png
:alt: Contouring the solution space of optimizations
:ref:`sphx_glr_gallery_images_contours_and_fields_contours_in_optimization_demo.py`
.. raw:: html
Contouring the solution space of optimizations
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_demo_bboximage_thumb.png
:alt: BboxImage Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_demo_bboximage.py`
.. raw:: html
BboxImage Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_figimage_demo_thumb.png
:alt: Figimage Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_figimage_demo.py`
.. raw:: html
Figimage Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_annotated_heatmap_thumb.png
:alt: Creating annotated heatmaps
:ref:`sphx_glr_gallery_images_contours_and_fields_image_annotated_heatmap.py`
.. raw:: html
Creating annotated heatmaps
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_antialiasing_thumb.png
:alt: Image antialiasing
:ref:`sphx_glr_gallery_images_contours_and_fields_image_antialiasing.py`
.. raw:: html
Image antialiasing
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_clip_path_thumb.png
:alt: Clipping images with patches
:ref:`sphx_glr_gallery_images_contours_and_fields_image_clip_path.py`
.. raw:: html
Clipping images with patches
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_demo_thumb.png
:alt: Image Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_image_demo.py`
.. raw:: html
Image Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_masked_thumb.png
:alt: Image Masked
:ref:`sphx_glr_gallery_images_contours_and_fields_image_masked.py`
.. raw:: html
Image Masked
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_nonuniform_thumb.png
:alt: Image Nonuniform
:ref:`sphx_glr_gallery_images_contours_and_fields_image_nonuniform.py`
.. raw:: html
Image Nonuniform
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_transparency_blend_thumb.png
:alt: Blend transparency with color in 2D images
:ref:`sphx_glr_gallery_images_contours_and_fields_image_transparency_blend.py`
.. raw:: html
Blend transparency with color in 2D images
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_zcoord_thumb.png
:alt: Modifying the coordinate formatter
:ref:`sphx_glr_gallery_images_contours_and_fields_image_zcoord.py`
.. raw:: html
Modifying the coordinate formatter
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_interpolation_methods_thumb.png
:alt: Interpolations for imshow
:ref:`sphx_glr_gallery_images_contours_and_fields_interpolation_methods.py`
.. raw:: html
Interpolations for imshow
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_irregulardatagrid_thumb.png
:alt: Contour plot of irregularly spaced data
:ref:`sphx_glr_gallery_images_contours_and_fields_irregulardatagrid.py`
.. raw:: html
Contour plot of irregularly spaced data
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_layer_images_thumb.png
:alt: Layer Images
:ref:`sphx_glr_gallery_images_contours_and_fields_layer_images.py`
.. raw:: html
Layer Images
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_matshow_thumb.png
:alt: Matshow
:ref:`sphx_glr_gallery_images_contours_and_fields_matshow.py`
.. raw:: html
Matshow
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_multi_image_thumb.png
:alt: Multi Image
:ref:`sphx_glr_gallery_images_contours_and_fields_multi_image.py`
.. raw:: html
Multi Image
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolor_demo_thumb.png
:alt: Pcolor Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_pcolor_demo.py`
.. raw:: html
Pcolor Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolormesh_grids_thumb.png
:alt: pcolormesh grids and shading
:ref:`sphx_glr_gallery_images_contours_and_fields_pcolormesh_grids.py`
.. raw:: html
pcolormesh grids and shading
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolormesh_levels_thumb.png
:alt: pcolormesh
:ref:`sphx_glr_gallery_images_contours_and_fields_pcolormesh_levels.py`
.. raw:: html
pcolormesh
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_plot_streamplot_thumb.png
:alt: Streamplot
:ref:`sphx_glr_gallery_images_contours_and_fields_plot_streamplot.py`
.. raw:: html
Streamplot
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quadmesh_demo_thumb.png
:alt: QuadMesh Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_quadmesh_demo.py`
.. raw:: html
QuadMesh Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quiver_demo_thumb.png
:alt: Advanced quiver and quiverkey functions
:ref:`sphx_glr_gallery_images_contours_and_fields_quiver_demo.py`
.. raw:: html
Advanced quiver and quiverkey functions
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_quiver_simple_demo_thumb.png
:alt: Quiver Simple Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_quiver_simple_demo.py`
.. raw:: html
Quiver Simple Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_shading_example_thumb.png
:alt: Shading example
:ref:`sphx_glr_gallery_images_contours_and_fields_shading_example.py`
.. raw:: html
Shading example
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_specgram_demo_thumb.png
:alt: Spectrogram Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_specgram_demo.py`
.. raw:: html
Spectrogram Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_spy_demos_thumb.png
:alt: Spy Demos
:ref:`sphx_glr_gallery_images_contours_and_fields_spy_demos.py`
.. raw:: html
Spy Demos
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_demo_thumb.png
:alt: Tricontour Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_demo.py`
.. raw:: html
Tricontour Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_smooth_delaunay_thumb.png
:alt: Tricontour Smooth Delaunay
:ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_smooth_delaunay.py`
.. raw:: html
Tricontour Smooth Delaunay
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tricontour_smooth_user_thumb.png
:alt: Tricontour Smooth User
:ref:`sphx_glr_gallery_images_contours_and_fields_tricontour_smooth_user.py`
.. raw:: html
Tricontour Smooth User
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_trigradient_demo_thumb.png
:alt: Trigradient Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_trigradient_demo.py`
.. raw:: html
Trigradient Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_triinterp_demo_thumb.png
:alt: Triinterp Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_triinterp_demo.py`
.. raw:: html
Triinterp Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_tripcolor_demo_thumb.png
:alt: Tripcolor Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_tripcolor_demo.py`
.. raw:: html
Tripcolor Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_triplot_demo_thumb.png
:alt: Triplot Demo
:ref:`sphx_glr_gallery_images_contours_and_fields_triplot_demo.py`
.. raw:: html
Triplot Demo
.. raw:: html
.. only:: html
.. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_watermark_image_thumb.png
:alt: Watermark image
:ref:`sphx_glr_gallery_images_contours_and_fields_watermark_image.py`
.. raw:: html
Watermark image
.. raw:: html
Subplots, axes and figures
==========================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_align_labels_demo_thumb.png
:alt: Aligning Labels
:ref:`sphx_glr_gallery_subplots_axes_and_figures_align_labels_demo.py`
.. raw:: html
Aligning Labels
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_box_aspect_thumb.png
:alt: Axes box aspect
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_box_aspect.py`
.. raw:: html
Axes box aspect
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_demo_thumb.png
:alt: Axes Demo
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_demo.py`
.. raw:: html
Axes Demo
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_margins_thumb.png
:alt: Controlling view limits using margins and sticky_edges
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_margins.py`
.. raw:: html
Controlling view limits using margins and sticky_edges
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_props_thumb.png
:alt: Axes Props
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_props.py`
.. raw:: html
Axes Props
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_zoom_effect_thumb.png
:alt: Axes Zoom Effect
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axes_zoom_effect.py`
.. raw:: html
Axes Zoom Effect
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axhspan_demo_thumb.png
:alt: axhspan Demo
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axhspan_demo.py`
.. raw:: html
axhspan Demo
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axis_equal_demo_thumb.png
:alt: Equal axis aspect ratio
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axis_equal_demo.py`
.. raw:: html
Equal axis aspect ratio
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axis_labels_demo_thumb.png
:alt: Axis Label Position
:ref:`sphx_glr_gallery_subplots_axes_and_figures_axis_labels_demo.py`
.. raw:: html
Axis Label Position
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_broken_axis_thumb.png
:alt: Broken Axis
:ref:`sphx_glr_gallery_subplots_axes_and_figures_broken_axis.py`
.. raw:: html
Broken Axis
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_colorbar_placement_thumb.png
:alt: Placing Colorbars
:ref:`sphx_glr_gallery_subplots_axes_and_figures_colorbar_placement.py`
.. raw:: html
Placing Colorbars
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_custom_figure_class_thumb.png
:alt: Custom Figure subclasses
:ref:`sphx_glr_gallery_subplots_axes_and_figures_custom_figure_class.py`
.. raw:: html
Custom Figure subclasses
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_demo_constrained_layout_thumb.png
:alt: Resizing axes with constrained layout
:ref:`sphx_glr_gallery_subplots_axes_and_figures_demo_constrained_layout.py`
.. raw:: html
Resizing axes with constrained layout
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_demo_tight_layout_thumb.png
:alt: Resizing axes with tight layout
:ref:`sphx_glr_gallery_subplots_axes_and_figures_demo_tight_layout.py`
.. raw:: html
Resizing axes with tight layout
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_fahrenheit_celsius_scales_thumb.png
:alt: Different scales on the same axes
:ref:`sphx_glr_gallery_subplots_axes_and_figures_fahrenheit_celsius_scales.py`
.. raw:: html
Different scales on the same axes
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_figure_size_units_thumb.png
:alt: Figure size in different units
:ref:`sphx_glr_gallery_subplots_axes_and_figures_figure_size_units.py`
.. raw:: html
Figure size in different units
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_figure_title_thumb.png
:alt: Figure labels: suptitle, supxlabel, supylabel
:ref:`sphx_glr_gallery_subplots_axes_and_figures_figure_title.py`
.. raw:: html
Figure labels: suptitle, supxlabel, supylabel
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_ganged_plots_thumb.png
:alt: Creating adjacent subplots
:ref:`sphx_glr_gallery_subplots_axes_and_figures_ganged_plots.py`
.. raw:: html
Creating adjacent subplots
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_geo_demo_thumb.png
:alt: Geographic Projections
:ref:`sphx_glr_gallery_subplots_axes_and_figures_geo_demo.py`
.. raw:: html
Geographic Projections
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_gridspec_and_subplots_thumb.png
:alt: Combining two subplots using subplots and GridSpec
:ref:`sphx_glr_gallery_subplots_axes_and_figures_gridspec_and_subplots.py`
.. raw:: html
Combining two subplots using subplots and GridSpec
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_gridspec_multicolumn_thumb.png
:alt: Using Gridspec to make multi-column/row subplot layouts
:ref:`sphx_glr_gallery_subplots_axes_and_figures_gridspec_multicolumn.py`
.. raw:: html
Using Gridspec to make multi-column/row subplot layouts
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_gridspec_nested_thumb.png
:alt: Nested Gridspecs
:ref:`sphx_glr_gallery_subplots_axes_and_figures_gridspec_nested.py`
.. raw:: html
Nested Gridspecs
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_invert_axes_thumb.png
:alt: Invert Axes
:ref:`sphx_glr_gallery_subplots_axes_and_figures_invert_axes.py`
.. raw:: html
Invert Axes
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_multiple_figs_demo_thumb.png
:alt: Managing multiple figures in pyplot
:ref:`sphx_glr_gallery_subplots_axes_and_figures_multiple_figs_demo.py`
.. raw:: html
Managing multiple figures in pyplot
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_secondary_axis_thumb.png
:alt: Secondary Axis
:ref:`sphx_glr_gallery_subplots_axes_and_figures_secondary_axis.py`
.. raw:: html
Secondary Axis
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_share_axis_lims_views_thumb.png
:alt: Sharing axis limits and views
:ref:`sphx_glr_gallery_subplots_axes_and_figures_share_axis_lims_views.py`
.. raw:: html
Sharing axis limits and views
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_shared_axis_demo_thumb.png
:alt: Shared Axis
:ref:`sphx_glr_gallery_subplots_axes_and_figures_shared_axis_demo.py`
.. raw:: html
Shared Axis
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subfigures_thumb.png
:alt: Figure subfigures
:ref:`sphx_glr_gallery_subplots_axes_and_figures_subfigures.py`
.. raw:: html
Figure subfigures
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplot_thumb.png
:alt: Multiple subplots
:ref:`sphx_glr_gallery_subplots_axes_and_figures_subplot.py`
.. raw:: html
Multiple subplots
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplots_adjust_thumb.png
:alt: Subplots spacings and margins
:ref:`sphx_glr_gallery_subplots_axes_and_figures_subplots_adjust.py`
.. raw:: html
Subplots spacings and margins
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_subplots_demo_thumb.png
:alt: Creating multiple subplots using ``plt.subplots``
:ref:`sphx_glr_gallery_subplots_axes_and_figures_subplots_demo.py`
.. raw:: html
Creating multiple subplots using ``plt.subplots``
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_two_scales_thumb.png
:alt: Plots with different scales
:ref:`sphx_glr_gallery_subplots_axes_and_figures_two_scales.py`
.. raw:: html
Plots with different scales
.. raw:: html
.. only:: html
.. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_zoom_inset_axes_thumb.png
:alt: Zoom region inset axes
:ref:`sphx_glr_gallery_subplots_axes_and_figures_zoom_inset_axes.py`
.. raw:: html
Zoom region inset axes
.. raw:: html
Statistics
==========
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_barchart_demo_thumb.png
:alt: Percentiles as horizontal bar chart
:ref:`sphx_glr_gallery_statistics_barchart_demo.py`
.. raw:: html
Percentiles as horizontal bar chart
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_boxplot_thumb.png
:alt: Artist customization in box plots
:ref:`sphx_glr_gallery_statistics_boxplot.py`
.. raw:: html
Artist customization in box plots
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_boxplot_color_thumb.png
:alt: Box plots with custom fill colors
:ref:`sphx_glr_gallery_statistics_boxplot_color.py`
.. raw:: html
Box plots with custom fill colors
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_boxplot_demo_thumb.png
:alt: Boxplots
:ref:`sphx_glr_gallery_statistics_boxplot_demo.py`
.. raw:: html
Boxplots
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_boxplot_vs_violin_thumb.png
:alt: Box plot vs. violin plot comparison
:ref:`sphx_glr_gallery_statistics_boxplot_vs_violin.py`
.. raw:: html
Box plot vs. violin plot comparison
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_bxp_thumb.png
:alt: Boxplot drawer function
:ref:`sphx_glr_gallery_statistics_bxp.py`
.. raw:: html
Boxplot drawer function
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_confidence_ellipse_thumb.png
:alt: Plot a confidence ellipse of a two-dimensional dataset
:ref:`sphx_glr_gallery_statistics_confidence_ellipse.py`
.. raw:: html
Plot a confidence ellipse of a two-dimensional dataset
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_customized_violin_thumb.png
:alt: Violin plot customization
:ref:`sphx_glr_gallery_statistics_customized_violin.py`
.. raw:: html
Violin plot customization
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_errorbar_thumb.png
:alt: Errorbar function
:ref:`sphx_glr_gallery_statistics_errorbar.py`
.. raw:: html
Errorbar function
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_errorbar_features_thumb.png
:alt: Different ways of specifying error bars
:ref:`sphx_glr_gallery_statistics_errorbar_features.py`
.. raw:: html
Different ways of specifying error bars
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_errorbar_limits_thumb.png
:alt: Including upper and lower limits in error bars
:ref:`sphx_glr_gallery_statistics_errorbar_limits.py`
.. raw:: html
Including upper and lower limits in error bars
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_errorbars_and_boxes_thumb.png
:alt: Creating boxes from error bars using PatchCollection
:ref:`sphx_glr_gallery_statistics_errorbars_and_boxes.py`
.. raw:: html
Creating boxes from error bars using PatchCollection
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_hexbin_demo_thumb.png
:alt: Hexagonal binned plot
:ref:`sphx_glr_gallery_statistics_hexbin_demo.py`
.. raw:: html
Hexagonal binned plot
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_hist_thumb.png
:alt: Histograms
:ref:`sphx_glr_gallery_statistics_hist.py`
.. raw:: html
Histograms
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_histogram_cumulative_thumb.png
:alt: Using histograms to plot a cumulative distribution
:ref:`sphx_glr_gallery_statistics_histogram_cumulative.py`
.. raw:: html
Using histograms to plot a cumulative distribution
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_histogram_features_thumb.png
:alt: Some features of the histogram (hist) function
:ref:`sphx_glr_gallery_statistics_histogram_features.py`
.. raw:: html
Some features of the histogram (hist) function
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_histogram_histtypes_thumb.png
:alt: Demo of the histogram function's different ``histtype`` settings
:ref:`sphx_glr_gallery_statistics_histogram_histtypes.py`
.. raw:: html
Demo of the histogram function's different ``histtype`` settings
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_histogram_multihist_thumb.png
:alt: The histogram (hist) function with multiple data sets
:ref:`sphx_glr_gallery_statistics_histogram_multihist.py`
.. raw:: html
The histogram (hist) function with multiple data sets
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_multiple_histograms_side_by_side_thumb.png
:alt: Producing multiple histograms side by side
:ref:`sphx_glr_gallery_statistics_multiple_histograms_side_by_side.py`
.. raw:: html
Producing multiple histograms side by side
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_time_series_histogram_thumb.png
:alt: Time Series Histogram
:ref:`sphx_glr_gallery_statistics_time_series_histogram.py`
.. raw:: html
Time Series Histogram
.. raw:: html
.. only:: html
.. image:: /gallery/statistics/images/thumb/sphx_glr_violinplot_thumb.png
:alt: Violin plot basics
:ref:`sphx_glr_gallery_statistics_violinplot.py`
.. raw:: html
Violin plot basics
.. raw:: html
Pie and polar charts
====================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_pie_features_thumb.png
:alt: Basic pie chart
:ref:`sphx_glr_gallery_pie_and_polar_charts_pie_features.py`
.. raw:: html
Basic pie chart
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_pie_demo2_thumb.png
:alt: Pie Demo2
:ref:`sphx_glr_gallery_pie_and_polar_charts_pie_demo2.py`
.. raw:: html
Pie Demo2
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_bar_of_pie_thumb.png
:alt: Bar of pie
:ref:`sphx_glr_gallery_pie_and_polar_charts_bar_of_pie.py`
.. raw:: html
Bar of pie
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_nested_pie_thumb.png
:alt: Nested pie charts
:ref:`sphx_glr_gallery_pie_and_polar_charts_nested_pie.py`
.. raw:: html
Nested pie charts
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_pie_and_donut_labels_thumb.png
:alt: Labeling a pie and a donut
:ref:`sphx_glr_gallery_pie_and_polar_charts_pie_and_donut_labels.py`
.. raw:: html
Labeling a pie and a donut
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_bar_thumb.png
:alt: Bar chart on polar axis
:ref:`sphx_glr_gallery_pie_and_polar_charts_polar_bar.py`
.. raw:: html
Bar chart on polar axis
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_demo_thumb.png
:alt: Polar plot
:ref:`sphx_glr_gallery_pie_and_polar_charts_polar_demo.py`
.. raw:: html
Polar plot
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_legend_thumb.png
:alt: Polar Legend
:ref:`sphx_glr_gallery_pie_and_polar_charts_polar_legend.py`
.. raw:: html
Polar Legend
.. raw:: html
.. only:: html
.. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_scatter_thumb.png
:alt: Scatter plot on polar axis
:ref:`sphx_glr_gallery_pie_and_polar_charts_polar_scatter.py`
.. raw:: html
Scatter plot on polar axis
.. raw:: html
Text, labels and annotations
============================
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_accented_text_thumb.png
:alt: Using accented text in Matplotlib
:ref:`sphx_glr_gallery_text_labels_and_annotations_accented_text.py`
.. raw:: html
Using accented text in Matplotlib
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_angle_annotation_thumb.png
:alt: Scale invariant angle label
:ref:`sphx_glr_gallery_text_labels_and_annotations_angle_annotation.py`
.. raw:: html
Scale invariant angle label
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotation_demo_thumb.png
:alt: Annotating Plots
:ref:`sphx_glr_gallery_text_labels_and_annotations_annotation_demo.py`
.. raw:: html
Annotating Plots
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_arrow_demo_thumb.png
:alt: Arrow Demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_arrow_demo.py`
.. raw:: html
Arrow Demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_autowrap_thumb.png
:alt: Auto-wrapping text
:ref:`sphx_glr_gallery_text_labels_and_annotations_autowrap.py`
.. raw:: html
Auto-wrapping text
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_custom_legends_thumb.png
:alt: Composing Custom Legends
:ref:`sphx_glr_gallery_text_labels_and_annotations_custom_legends.py`
.. raw:: html
Composing Custom Legends
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_date_thumb.png
:alt: Date tick labels
:ref:`sphx_glr_gallery_text_labels_and_annotations_date.py`
.. raw:: html
Date tick labels
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_annotation_box_thumb.png
:alt: AnnotationBbox demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_annotation_box.py`
.. raw:: html
AnnotationBbox demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_text_path_thumb.png
:alt: Using a text as a Path
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_text_path.py`
.. raw:: html
Using a text as a Path
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_demo_text_rotation_mode_thumb.png
:alt: Text Rotation Mode
:ref:`sphx_glr_gallery_text_labels_and_annotations_demo_text_rotation_mode.py`
.. raw:: html
Text Rotation Mode
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_dfrac_demo_thumb.png
:alt: The difference between \\dfrac and \\frac
:ref:`sphx_glr_gallery_text_labels_and_annotations_dfrac_demo.py`
.. raw:: html
The difference between \\dfrac and \\frac
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_engineering_formatter_thumb.png
:alt: Labeling ticks using engineering notation
:ref:`sphx_glr_gallery_text_labels_and_annotations_engineering_formatter.py`
.. raw:: html
Labeling ticks using engineering notation
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fancyarrow_demo_thumb.png
:alt: Annotation arrow style reference
:ref:`sphx_glr_gallery_text_labels_and_annotations_fancyarrow_demo.py`
.. raw:: html
Annotation arrow style reference
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fancytextbox_demo_thumb.png
:alt: Styling text boxes
:ref:`sphx_glr_gallery_text_labels_and_annotations_fancytextbox_demo.py`
.. raw:: html
Styling text boxes
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_figlegend_demo_thumb.png
:alt: Figure legend demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_figlegend_demo.py`
.. raw:: html
Figure legend demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_family_rc_thumb.png
:alt: Configuring the font family
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_family_rc.py`
.. raw:: html
Configuring the font family
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_file_thumb.png
:alt: Using a ttf font file in Matplotlib
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_file.py`
.. raw:: html
Using a ttf font file in Matplotlib
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_table_thumb.png
:alt: Font table
:ref:`sphx_glr_gallery_text_labels_and_annotations_font_table.py`
.. raw:: html
Font table
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_thumb.png
:alt: Fonts demo (object-oriented style)
:ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo.py`
.. raw:: html
Fonts demo (object-oriented style)
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_fonts_demo_kw_thumb.png
:alt: Fonts demo (keyword arguments)
:ref:`sphx_glr_gallery_text_labels_and_annotations_fonts_demo_kw.py`
.. raw:: html
Fonts demo (keyword arguments)
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_label_subplots_thumb.png
:alt: Labelling subplots
:ref:`sphx_glr_gallery_text_labels_and_annotations_label_subplots.py`
.. raw:: html
Labelling subplots
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_legend_thumb.png
:alt: Legend using pre-defined labels
:ref:`sphx_glr_gallery_text_labels_and_annotations_legend.py`
.. raw:: html
Legend using pre-defined labels
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_legend_demo_thumb.png
:alt: Legend Demo
:ref:`sphx_glr_gallery_text_labels_and_annotations_legend_demo.py`
.. raw:: html
Legend Demo
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_line_with_text_thumb.png
:alt: Artist within an artist
:ref:`sphx_glr_gallery_text_labels_and_annotations_line_with_text.py`
.. raw:: html
Artist within an artist
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_asarray_thumb.png
:alt: Convert texts to images
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_asarray.py`
.. raw:: html
Convert texts to images
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_demo_thumb.png
:alt: Mathtext
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_demo.py`
.. raw:: html
Mathtext
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_examples_thumb.png
:alt: Mathtext Examples
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_examples.py`
.. raw:: html
Mathtext Examples
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_mathtext_fontfamily_example_thumb.png
:alt: Math fontfamily
:ref:`sphx_glr_gallery_text_labels_and_annotations_mathtext_fontfamily_example.py`
.. raw:: html
Math fontfamily
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_multiline_thumb.png
:alt: Multiline
:ref:`sphx_glr_gallery_text_labels_and_annotations_multiline.py`
.. raw:: html
Multiline
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_placing_text_boxes_thumb.png
:alt: Placing text boxes
:ref:`sphx_glr_gallery_text_labels_and_annotations_placing_text_boxes.py`
.. raw:: html
Placing text boxes
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_rainbow_text_thumb.png
:alt: Rainbow text
:ref:`sphx_glr_gallery_text_labels_and_annotations_rainbow_text.py`
.. raw:: html
Rainbow text
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_stix_fonts_demo_thumb.png
:alt: STIX Fonts
:ref:`sphx_glr_gallery_text_labels_and_annotations_stix_fonts_demo.py`
.. raw:: html
STIX Fonts
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_tex_demo_thumb.png
:alt: Rendering math equations using TeX
:ref:`sphx_glr_gallery_text_labels_and_annotations_tex_demo.py`
.. raw:: html
Rendering math equations using TeX
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_alignment_thumb.png
:alt: Text alignment
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_alignment.py`
.. raw:: html
Text alignment
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_fontdict_thumb.png
:alt: Controlling style of text and labels using a dictionary
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_fontdict.py`
.. raw:: html
Controlling style of text and labels using a dictionary
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_thumb.png
:alt: Default text rotation demonstration
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation.py`
.. raw:: html
Default text rotation demonstration
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_rotation_relative_to_line_thumb.png
:alt: Text Rotation Relative To Line
:ref:`sphx_glr_gallery_text_labels_and_annotations_text_rotation_relative_to_line.py`
.. raw:: html
Text Rotation Relative To Line
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_titles_demo_thumb.png
:alt: Title positioning
:ref:`sphx_glr_gallery_text_labels_and_annotations_titles_demo.py`
.. raw:: html
Title positioning
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_unicode_minus_thumb.png
:alt: Unicode minus
:ref:`sphx_glr_gallery_text_labels_and_annotations_unicode_minus.py`
.. raw:: html
Unicode minus
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_baseline_test_thumb.png
:alt: Usetex Baseline Test
:ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_baseline_test.py`
.. raw:: html
Usetex Baseline Test
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_usetex_fonteffects_thumb.png
:alt: Usetex Fonteffects
:ref:`sphx_glr_gallery_text_labels_and_annotations_usetex_fonteffects.py`
.. raw:: html
Usetex Fonteffects
.. raw:: html
.. only:: html
.. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_watermark_text_thumb.png
:alt: Text watermark
:ref:`sphx_glr_gallery_text_labels_and_annotations_watermark_text.py`
.. raw:: html
Text watermark
.. raw:: html
pyplot
======
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_align_ylabels_thumb.png
:alt: Align y-labels
:ref:`sphx_glr_gallery_pyplots_align_ylabels.py`
.. raw:: html
Align y-labels
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_annotate_transform_thumb.png
:alt: Annotate Transform
:ref:`sphx_glr_gallery_pyplots_annotate_transform.py`
.. raw:: html
Annotate Transform
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_annotation_basic_thumb.png
:alt: Annotating a plot
:ref:`sphx_glr_gallery_pyplots_annotation_basic.py`
.. raw:: html
Annotating a plot
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_annotation_polar_thumb.png
:alt: Annotation Polar
:ref:`sphx_glr_gallery_pyplots_annotation_polar.py`
.. raw:: html
Annotation Polar
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_auto_subplots_adjust_thumb.png
:alt: Programmatically controlling subplot adjustment
:ref:`sphx_glr_gallery_pyplots_auto_subplots_adjust.py`
.. raw:: html
Programmatically controlling subplot adjustment
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_axline_thumb.png
:alt: Infinite lines
:ref:`sphx_glr_gallery_pyplots_axline.py`
.. raw:: html
Infinite lines
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_boxplot_demo_pyplot_thumb.png
:alt: Boxplot Demo
:ref:`sphx_glr_gallery_pyplots_boxplot_demo_pyplot.py`
.. raw:: html
Boxplot Demo
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_dollar_ticks_thumb.png
:alt: Dollar Ticks
:ref:`sphx_glr_gallery_pyplots_dollar_ticks.py`
.. raw:: html
Dollar Ticks
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_fig_axes_customize_simple_thumb.png
:alt: Fig Axes Customize Simple
:ref:`sphx_glr_gallery_pyplots_fig_axes_customize_simple.py`
.. raw:: html
Fig Axes Customize Simple
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_fig_axes_labels_simple_thumb.png
:alt: Simple axes labels
:ref:`sphx_glr_gallery_pyplots_fig_axes_labels_simple.py`
.. raw:: html
Simple axes labels
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_fig_x_thumb.png
:alt: Adding lines to figures
:ref:`sphx_glr_gallery_pyplots_fig_x.py`
.. raw:: html
Adding lines to figures
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_formatstr_thumb.png
:alt: plot() format string
:ref:`sphx_glr_gallery_pyplots_pyplot_formatstr.py`
.. raw:: html
plot() format string
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_mathtext_thumb.png
:alt: Pyplot Mathtext
:ref:`sphx_glr_gallery_pyplots_pyplot_mathtext.py`
.. raw:: html
Pyplot Mathtext
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_simple_thumb.png
:alt: Pyplot Simple
:ref:`sphx_glr_gallery_pyplots_pyplot_simple.py`
.. raw:: html
Pyplot Simple
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_text_thumb.png
:alt: Pyplot Text
:ref:`sphx_glr_gallery_pyplots_pyplot_text.py`
.. raw:: html
Pyplot Text
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_three_thumb.png
:alt: Pyplot Three
:ref:`sphx_glr_gallery_pyplots_pyplot_three.py`
.. raw:: html
Pyplot Three
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_two_subplots_thumb.png
:alt: Pyplot Two Subplots
:ref:`sphx_glr_gallery_pyplots_pyplot_two_subplots.py`
.. raw:: html
Pyplot Two Subplots
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_text_commands_thumb.png
:alt: Text Commands
:ref:`sphx_glr_gallery_pyplots_text_commands.py`
.. raw:: html
Text Commands
.. raw:: html
.. only:: html
.. image:: /gallery/pyplots/images/thumb/sphx_glr_text_layout_thumb.png
:alt: Text Layout
:ref:`sphx_glr_gallery_pyplots_text_layout.py`
.. raw:: html
Text Layout
.. raw:: html
Color
=====
For more in-depth information about the colormaps available in matplotlib
as well as a description of their properties,
see the :ref:`colormaps tutorial