:orphan: .. _examples-index: .. _gallery: ======== Examples ======== For an overview of the plotting methods we provide, see :ref:`plot_types` This page contains example plots. Click on any image to see the full image and source code. For longer tutorials, see our :ref:`tutorials page `. You can also find :ref:`external resources ` and a :ref:`FAQ ` in our :ref:`user guide `. .. 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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_lines_bars_and_markers_csd_demo.py` .. raw:: html
Cross spectral density (CSD)
.. raw:: html
.. only:: html .. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_curve_error_band_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_lines_bars_and_markers_psd_demo.py` .. raw:: html
Power spectral density (PSD)
.. raw:: html
.. only:: html .. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_scatter_demo2_thumb.png :alt: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_lines_bars_and_markers_span_regions.py` .. raw:: html
Shade regions defined by a logical mask using fill_between
.. raw:: html
.. only:: html .. image:: /gallery/lines_bars_and_markers/images/thumb/sphx_glr_spectrum_demo_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_lines_bars_and_markers_xcorr_acorr_demo.py` .. raw:: html
Cross- and auto-correlation
.. 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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_images_contours_and_fields_image_demo.py` .. raw:: html
Many ways to plot images
.. raw:: html
.. only:: html .. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_image_masked_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_images_contours_and_fields_matshow.py` .. raw:: html
Visualize matrices with matshow
.. raw:: html
.. only:: html .. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_multi_image_thumb.png :alt: :ref:`sphx_glr_gallery_images_contours_and_fields_multi_image.py` .. raw:: html
Multiple images
.. raw:: html
.. only:: html .. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolor_demo_thumb.png :alt: :ref:`sphx_glr_gallery_images_contours_and_fields_pcolor_demo.py` .. raw:: html
pcolor images
.. raw:: html
.. only:: html .. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_pcolormesh_grids_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_images_contours_and_fields_specgram_demo.py` .. raw:: html
Spectrogram
.. raw:: html
.. only:: html .. image:: /gallery/images_contours_and_fields/images/thumb/sphx_glr_spy_demos_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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_auto_subplots_adjust_thumb.png :alt: :ref:`sphx_glr_gallery_subplots_axes_and_figures_auto_subplots_adjust.py` .. raw:: html
Programmatically controlling subplot adjustment
.. raw:: html
.. only:: html .. image:: /gallery/subplots_axes_and_figures/images/thumb/sphx_glr_axes_box_aspect_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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_custom_figure_class_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_statistics_histogram_cumulative.py` .. raw:: html
Plotting cumulative distributions
.. raw:: html
.. only:: html .. image:: /gallery/statistics/images/thumb/sphx_glr_histogram_features_thumb.png :alt: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_pie_and_polar_charts_pie_features.py` .. raw:: html
Pie charts
.. raw:: html
.. only:: html .. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_bar_of_pie_thumb.png :alt: :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: :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: :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: :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: :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_error_caps_thumb.png :alt: :ref:`sphx_glr_gallery_pie_and_polar_charts_polar_error_caps.py` .. raw:: html
Error bar rendering on polar axis
.. raw:: html
.. only:: html .. image:: /gallery/pie_and_polar_charts/images/thumb/sphx_glr_polar_legend_thumb.png :alt: :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: :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: :ref:`sphx_glr_gallery_text_labels_and_annotations_accented_text.py` .. raw:: html
Accented text
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_align_ylabels_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_align_ylabels.py` .. raw:: html
Align y-labels
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_angle_annotation_thumb.png :alt: :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_angles_on_bracket_arrows_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_angles_on_bracket_arrows.py` .. raw:: html
Angle annotations on bracket arrows
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotate_transform_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_annotate_transform.py` .. raw:: html
Annotate Transform
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotation_basic_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_annotation_basic.py` .. raw:: html
Annotating a plot
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_annotation_demo_thumb.png :alt: :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_annotation_polar_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_annotation_polar.py` .. raw:: html
Annotation Polar
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_arrow_demo_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_text_labels_and_annotations_font_file.py` .. raw:: html
Using ttf font files
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_font_table_thumb.png :alt: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_text_labels_and_annotations_rainbow_text.py` .. raw:: html
Concatenating text objects with different properties
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_stix_fonts_demo_thumb.png :alt: :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: :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: :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_commands_thumb.png :alt: :ref:`sphx_glr_gallery_text_labels_and_annotations_text_commands.py` .. raw:: html
Text Commands
.. raw:: html
.. only:: html .. image:: /gallery/text_labels_and_annotations/images/thumb/sphx_glr_text_fontdict_thumb.png :alt: :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_relative_to_line_thumb.png :alt: :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: :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: :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: :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: :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: :ref:`sphx_glr_gallery_text_labels_and_annotations_watermark_text.py` .. raw:: html
Text watermark
.. raw:: html
Color ===== For a description of the colormaps available in Matplotlib, see the :ref:`colormaps tutorial `. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_color_demo_thumb.png :alt: :ref:`sphx_glr_gallery_color_color_demo.py` .. raw:: html
Color Demo
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_color_by_yvalue_thumb.png :alt: :ref:`sphx_glr_gallery_color_color_by_yvalue.py` .. raw:: html
Color by y-value
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_color_cycle_default_thumb.png :alt: :ref:`sphx_glr_gallery_color_color_cycle_default.py` .. raw:: html
Colors in the default property cycle
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_colorbar_basics_thumb.png :alt: :ref:`sphx_glr_gallery_color_colorbar_basics.py` .. raw:: html
Colorbar
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_colormap_reference_thumb.png :alt: :ref:`sphx_glr_gallery_color_colormap_reference.py` .. raw:: html
Colormap reference
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_custom_cmap_thumb.png :alt: :ref:`sphx_glr_gallery_color_custom_cmap.py` .. raw:: html
Creating a colormap from a list of colors
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_individual_colors_from_cmap_thumb.png :alt: :ref:`sphx_glr_gallery_color_individual_colors_from_cmap.py` .. raw:: html
Selecting individual colors from a colormap
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_named_colors_thumb.png :alt: :ref:`sphx_glr_gallery_color_named_colors.py` .. raw:: html
List of named colors
.. raw:: html
.. only:: html .. image:: /gallery/color/images/thumb/sphx_glr_set_alpha_thumb.png :alt: :ref:`sphx_glr_gallery_color_set_alpha.py` .. raw:: html
Ways to set a color's alpha value
.. raw:: html
Shapes and collections ====================== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_arrow_guide_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_arrow_guide.py` .. raw:: html
Arrow guide
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_artist_reference_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_artist_reference.py` .. raw:: html
Reference for Matplotlib artists
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_collections_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_collections.py` .. raw:: html
Line, Poly and RegularPoly Collection with autoscaling
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_compound_path_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_compound_path.py` .. raw:: html
Compound path
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_dolphin_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_dolphin.py` .. raw:: html
Dolphins
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_donut_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_donut.py` .. raw:: html
Mmh Donuts!!!
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_ellipse_arrow_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_ellipse_arrow.py` .. raw:: html
Ellipse with orientation arrow demo
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_ellipse_collection_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_ellipse_collection.py` .. raw:: html
Ellipse Collection
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_ellipse_demo_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_ellipse_demo.py` .. raw:: html
Ellipse Demo
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_fancybox_demo_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_fancybox_demo.py` .. raw:: html
Drawing fancy boxes
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_hatch_demo_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_hatch_demo.py` .. raw:: html
Hatch demo
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_hatch_style_reference_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_hatch_style_reference.py` .. raw:: html
Hatch style reference
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_line_collection_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_line_collection.py` .. raw:: html
Plotting multiple lines with a LineCollection
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_patch_collection_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_patch_collection.py` .. raw:: html
Circles, Wedges and Polygons
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_path_patch_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_path_patch.py` .. raw:: html
PathPatch object
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_quad_bezier_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_quad_bezier.py` .. raw:: html
Bezier Curve
.. raw:: html
.. only:: html .. image:: /gallery/shapes_and_collections/images/thumb/sphx_glr_scatter_thumb.png :alt: :ref:`sphx_glr_gallery_shapes_and_collections_scatter.py` .. raw:: html
Scatter plot
.. raw:: html
Style sheets ============ .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_bmh_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_bmh.py` .. raw:: html
Bayesian Methods for Hackers style sheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_dark_background_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_dark_background.py` .. raw:: html
Dark background style sheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_fivethirtyeight_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_fivethirtyeight.py` .. raw:: html
FiveThirtyEight style sheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_ggplot_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_ggplot.py` .. raw:: html
ggplot style sheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_grayscale_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_grayscale.py` .. raw:: html
Grayscale style sheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_plot_solarizedlight2_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_plot_solarizedlight2.py` .. raw:: html
Solarized Light stylesheet
.. raw:: html
.. only:: html .. image:: /gallery/style_sheets/images/thumb/sphx_glr_style_sheets_reference_thumb.png :alt: :ref:`sphx_glr_gallery_style_sheets_style_sheets_reference.py` .. raw:: html
Style sheets reference
.. raw:: html
Module - pyplot =============== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/pyplots/images/thumb/sphx_glr_axline_thumb.png :alt: :ref:`sphx_glr_gallery_pyplots_axline.py` .. raw:: html
Infinite lines
.. raw:: html
.. only:: html .. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_simple_thumb.png :alt: :ref:`sphx_glr_gallery_pyplots_pyplot_simple.py` .. raw:: html
Simple plot
.. raw:: html
.. only:: html .. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_text_thumb.png :alt: :ref:`sphx_glr_gallery_pyplots_pyplot_text.py` .. raw:: html
Text and mathtext using pyplot
.. raw:: html
.. only:: html .. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_three_thumb.png :alt: :ref:`sphx_glr_gallery_pyplots_pyplot_three.py` .. raw:: html
Multiple lines using pyplot
.. raw:: html
.. only:: html .. image:: /gallery/pyplots/images/thumb/sphx_glr_pyplot_two_subplots_thumb.png :alt: :ref:`sphx_glr_gallery_pyplots_pyplot_two_subplots.py` .. raw:: html
Two subplots using pyplot
.. raw:: html
Module - axes_grid1 =================== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_anchored_direction_arrows_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_anchored_direction_arrows.py` .. raw:: html
Anchored Direction Arrow
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_divider_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_axes_divider.py` .. raw:: html
Axes divider
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_grid_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_axes_grid.py` .. raw:: html
Demo Axes Grid
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_grid2_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_axes_grid2.py` .. raw:: html
Axes Grid2
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_hbox_divider_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_axes_hbox_divider.py` .. raw:: html
HBoxDivider and VBoxDivider demo
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_axes_rgb_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_axes_rgb.py` .. raw:: html
Showing RGB channels using RGBAxes
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_of_inset_axes_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_of_inset_axes.py` .. raw:: html
Adding a colorbar to inset axes
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_with_axes_divider_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_with_axes_divider.py` .. raw:: html
Colorbar with AxesDivider
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_colorbar_with_inset_locator_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_colorbar_with_inset_locator.py` .. raw:: html
Controlling the position and size of colorbars with Inset Axes
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_edge_colorbar_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_edge_colorbar.py` .. raw:: html
Per-row or per-column colorbars
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_fixed_size_axes_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_fixed_size_axes.py` .. raw:: html
Axes with a fixed physical size
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_demo_imagegrid_aspect_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_demo_imagegrid_aspect.py` .. raw:: html
Setting a fixed aspect on ImageGrid cells
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_inset_locator_demo_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_inset_locator_demo.py` .. raw:: html
Inset locator demo
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_inset_locator_demo2_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_inset_locator_demo2.py` .. raw:: html
Inset locator demo 2
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_make_room_for_ylabel_using_axesgrid_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_make_room_for_ylabel_using_axesgrid.py` .. raw:: html
Make room for ylabel using axes_grid
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_parasite_simple_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_parasite_simple.py` .. raw:: html
Parasite Simple
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_parasite_simple2_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_parasite_simple2.py` .. raw:: html
Parasite Simple2
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_scatter_hist_locatable_axes_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_scatter_hist_locatable_axes.py` .. raw:: html
Scatter Histogram (Locatable Axes)
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_anchored_artists_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_anchored_artists.py` .. raw:: html
Simple Anchored Artists
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axes_divider1_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_axes_divider1.py` .. raw:: html
Simple Axes Divider 1
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axes_divider3_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_axes_divider3.py` .. raw:: html
Simple axes divider 3
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axesgrid_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_axesgrid.py` .. raw:: html
Simple ImageGrid
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axesgrid2_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_axesgrid2.py` .. raw:: html
Simple ImageGrid 2
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_axisline4_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_axisline4.py` .. raw:: html
Simple Axisline4
.. raw:: html
.. only:: html .. image:: /gallery/axes_grid1/images/thumb/sphx_glr_simple_colorbar_thumb.png :alt: :ref:`sphx_glr_gallery_axes_grid1_simple_colorbar.py` .. raw:: html
Simple Colorbar
.. raw:: html
Module - axisartist =================== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_axis_direction_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_axis_direction.py` .. raw:: html
Axis Direction
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_axis_direction_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_axis_direction.py` .. raw:: html
axis_direction demo
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_axisline_style_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_axisline_style.py` .. raw:: html
Axis line styles
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_curvelinear_grid_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_curvelinear_grid.py` .. raw:: html
Curvilinear grid demo
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_curvelinear_grid2_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_curvelinear_grid2.py` .. raw:: html
Demo CurveLinear Grid2
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_floating_axes_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_floating_axes.py` .. raw:: html
floating_axes features
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_floating_axis_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_floating_axis.py` .. raw:: html
floating_axis demo
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_parasite_axes_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_parasite_axes.py` .. raw:: html
Parasite Axes demo
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_parasite_axes2_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_parasite_axes2.py` .. raw:: html
Parasite axis demo
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_ticklabel_alignment_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_ticklabel_alignment.py` .. raw:: html
Ticklabel alignment
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_demo_ticklabel_direction_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_demo_ticklabel_direction.py` .. raw:: html
Ticklabel direction
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axis_direction01_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axis_direction01.py` .. raw:: html
Simple axis direction
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axis_direction03_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axis_direction03.py` .. raw:: html
Simple axis tick label and tick directions
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axis_pad_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axis_pad.py` .. raw:: html
Simple Axis Pad
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axisartist1_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axisartist1.py` .. raw:: html
Custom spines with axisartist
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axisline_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axisline.py` .. raw:: html
Simple Axisline
.. raw:: html
.. only:: html .. image:: /gallery/axisartist/images/thumb/sphx_glr_simple_axisline3_thumb.png :alt: :ref:`sphx_glr_gallery_axisartist_simple_axisline3.py` .. raw:: html
Simple Axisline3
.. raw:: html
Showcase ======== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_anatomy_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_anatomy.py` .. raw:: html
Anatomy of a figure
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_firefox_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_firefox.py` .. raw:: html
Firefox
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_integral_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_integral.py` .. raw:: html
Integral as the area under a curve
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_mandelbrot_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_mandelbrot.py` .. raw:: html
Shaded & power normalized rendering
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_stock_prices_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_stock_prices.py` .. raw:: html
Stock prices over 32 years
.. raw:: html
.. only:: html .. image:: /gallery/showcase/images/thumb/sphx_glr_xkcd_thumb.png :alt: :ref:`sphx_glr_gallery_showcase_xkcd.py` .. raw:: html
XKCD
.. raw:: html
Animation ========= .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_animate_decay_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_animate_decay.py` .. raw:: html
Decay
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_animated_histogram_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_animated_histogram.py` .. raw:: html
Animated histogram
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_animation_demo_thumb.png :alt: :ref:`sphx_glr_gallery_animation_animation_demo.py` .. raw:: html
pyplot animation
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_bayes_update_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_bayes_update.py` .. raw:: html
The Bayes update
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_double_pendulum_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_double_pendulum.py` .. raw:: html
The double pendulum problem
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_dynamic_image_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_dynamic_image.py` .. raw:: html
Animated image using a precomputed list of images
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_frame_grabbing_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_animation_frame_grabbing_sgskip.py` .. raw:: html
Frame grabbing
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_multiple_axes_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_multiple_axes.py` .. raw:: html
Multiple axes animation
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_pause_resume_thumb.png :alt: :ref:`sphx_glr_gallery_animation_pause_resume.py` .. raw:: html
Pausing and Resuming an Animation
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_rain_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_rain.py` .. raw:: html
Rain simulation
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_random_walk_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_random_walk.py` .. raw:: html
Animated 3D random walk
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_simple_anim_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_simple_anim.py` .. raw:: html
Animated line plot
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_simple_scatter_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_simple_scatter.py` .. raw:: html
Animated scatter saved as GIF
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_strip_chart_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_strip_chart.py` .. raw:: html
Oscilloscope
.. raw:: html
.. only:: html .. image:: /gallery/animation/images/thumb/sphx_glr_unchained_thumb.gif :alt: :ref:`sphx_glr_gallery_animation_unchained.py` .. raw:: html
MATPLOTLIB UNCHAINED
.. raw:: html
Event handling ============== Matplotlib supports :ref:`event handling ` with a GUI neutral event model, so you can connect to Matplotlib events without knowledge of what user interface Matplotlib will ultimately be plugged in to. This has two advantages: the code you write will be more portable, and Matplotlib events are aware of things like data coordinate space and which axes the event occurs in so you don't have to mess with low level transformation details to go from canvas space to data space. Object picking examples are also included. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_close_event_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_close_event.py` .. raw:: html
Close Event
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_coords_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_coords_demo.py` .. raw:: html
Mouse move and click events
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_cursor_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_cursor_demo.py` .. raw:: html
Cross-hair cursor
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_data_browser_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_data_browser.py` .. raw:: html
Data browser
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_figure_axes_enter_leave_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_figure_axes_enter_leave.py` .. raw:: html
Figure/Axes enter and leave events
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_ginput_manual_clabel_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_ginput_manual_clabel_sgskip.py` .. raw:: html
Interactive functions
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_image_slices_viewer_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_image_slices_viewer.py` .. raw:: html
Scroll event
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_keypress_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_keypress_demo.py` .. raw:: html
Keypress event
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_lasso_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_lasso_demo.py` .. raw:: html
Lasso Demo
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_legend_picking_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_legend_picking.py` .. raw:: html
Legend picking
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_looking_glass_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_looking_glass.py` .. raw:: html
Looking Glass
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_path_editor_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_path_editor.py` .. raw:: html
Path editor
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_pick_event_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_pick_event_demo.py` .. raw:: html
Pick event demo
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_pick_event_demo2_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_pick_event_demo2.py` .. raw:: html
Pick event demo 2
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_poly_editor_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_poly_editor.py` .. raw:: html
Poly Editor
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_pong_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_pong_sgskip.py` .. raw:: html
Pong
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_resample_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_resample.py` .. raw:: html
Resampling Data
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_timers_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_timers.py` .. raw:: html
Timers
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_trifinder_event_demo_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_trifinder_event_demo.py` .. raw:: html
Trifinder Event Demo
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_viewlims_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_viewlims.py` .. raw:: html
Viewlims
.. raw:: html
.. only:: html .. image:: /gallery/event_handling/images/thumb/sphx_glr_zoom_window_thumb.png :alt: :ref:`sphx_glr_gallery_event_handling_zoom_window.py` .. raw:: html
Zoom Window
.. raw:: html
Miscellaneous ============= .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_anchored_artists_thumb.png :alt: :ref:`sphx_glr_gallery_misc_anchored_artists.py` .. raw:: html
Anchored Artists
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_bbox_intersect_thumb.png :alt: :ref:`sphx_glr_gallery_misc_bbox_intersect.py` .. raw:: html
Changing colors of lines intersecting a box
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_contour_manual_thumb.png :alt: :ref:`sphx_glr_gallery_misc_contour_manual.py` .. raw:: html
Manual Contour
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_coords_report_thumb.png :alt: :ref:`sphx_glr_gallery_misc_coords_report.py` .. raw:: html
Coords Report
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_custom_projection_thumb.png :alt: :ref:`sphx_glr_gallery_misc_custom_projection.py` .. raw:: html
Custom projection
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_customize_rc_thumb.png :alt: :ref:`sphx_glr_gallery_misc_customize_rc.py` .. raw:: html
Customize Rc
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_demo_agg_filter_thumb.png :alt: :ref:`sphx_glr_gallery_misc_demo_agg_filter.py` .. raw:: html
AGG filter
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_demo_ribbon_box_thumb.png :alt: :ref:`sphx_glr_gallery_misc_demo_ribbon_box.py` .. raw:: html
Ribbon Box
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_fig_x_thumb.png :alt: :ref:`sphx_glr_gallery_misc_fig_x.py` .. raw:: html
Adding lines to figures
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_fill_spiral_thumb.png :alt: :ref:`sphx_glr_gallery_misc_fill_spiral.py` .. raw:: html
Fill Spiral
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_findobj_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_findobj_demo.py` .. raw:: html
Findobj Demo
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_font_indexing_thumb.png :alt: :ref:`sphx_glr_gallery_misc_font_indexing.py` .. raw:: html
Font indexing
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_ftface_props_thumb.png :alt: :ref:`sphx_glr_gallery_misc_ftface_props.py` .. raw:: html
Font properties
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_histogram_path_thumb.png :alt: :ref:`sphx_glr_gallery_misc_histogram_path.py` .. raw:: html
Building histograms using Rectangles and PolyCollections
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_hyperlinks_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_misc_hyperlinks_sgskip.py` .. raw:: html
Hyperlinks
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_image_thumbnail_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_misc_image_thumbnail_sgskip.py` .. raw:: html
Image Thumbnail
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_keyword_plotting_thumb.png :alt: :ref:`sphx_glr_gallery_misc_keyword_plotting.py` .. raw:: html
Plotting with keywords
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_logos2_thumb.png :alt: :ref:`sphx_glr_gallery_misc_logos2.py` .. raw:: html
Matplotlib logo
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_multipage_pdf_thumb.png :alt: :ref:`sphx_glr_gallery_misc_multipage_pdf.py` .. raw:: html
Multipage PDF
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_multiprocess_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_misc_multiprocess_sgskip.py` .. raw:: html
Multiprocessing
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_packed_bubbles_thumb.png :alt: :ref:`sphx_glr_gallery_misc_packed_bubbles.py` .. raw:: html
Packed-bubble chart
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_patheffect_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_patheffect_demo.py` .. raw:: html
Patheffect Demo
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_print_stdout_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_misc_print_stdout_sgskip.py` .. raw:: html
Print Stdout
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_rasterization_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_rasterization_demo.py` .. raw:: html
Rasterization for vector graphics
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_set_and_get_thumb.png :alt: :ref:`sphx_glr_gallery_misc_set_and_get.py` .. raw:: html
Set and get properties
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_svg_filter_line_thumb.png :alt: :ref:`sphx_glr_gallery_misc_svg_filter_line.py` .. raw:: html
SVG Filter Line
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_svg_filter_pie_thumb.png :alt: :ref:`sphx_glr_gallery_misc_svg_filter_pie.py` .. raw:: html
SVG filter pie
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_table_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_table_demo.py` .. raw:: html
Table Demo
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_tickedstroke_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_tickedstroke_demo.py` .. raw:: html
TickedStroke patheffect
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_transoffset_thumb.png :alt: :ref:`sphx_glr_gallery_misc_transoffset.py` .. raw:: html
transforms.offset_copy
.. raw:: html
.. only:: html .. image:: /gallery/misc/images/thumb/sphx_glr_zorder_demo_thumb.png :alt: :ref:`sphx_glr_gallery_misc_zorder_demo.py` .. raw:: html
Zorder Demo
.. raw:: html
3D plotting =========== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_2dcollections3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_2dcollections3d.py` .. raw:: html
Plot 2D data on 3D plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_3d_bars_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_3d_bars.py` .. raw:: html
Demo of 3D bar charts
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_bars3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_bars3d.py` .. raw:: html
Create 2D bar graphs in different planes
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_box3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_box3d.py` .. raw:: html
3D box surface plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_contour3d.py` .. raw:: html
Plot contour (level) curves in 3D
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_2_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_contour3d_2.py` .. raw:: html
Plot contour (level) curves in 3D using the extend3d option
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_contour3d_3_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_contour3d_3.py` .. raw:: html
Project contour profiles onto a graph
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_contourf3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_contourf3d.py` .. raw:: html
Filled contours
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_contourf3d_2_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_contourf3d_2.py` .. raw:: html
Project filled contour onto a graph
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_custom_shaded_3d_surface_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_custom_shaded_3d_surface.py` .. raw:: html
Custom hillshading in a 3D surface plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_errorbar3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_errorbar3d.py` .. raw:: html
3D errorbars
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_hist3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_hist3d.py` .. raw:: html
Create 3D histogram of 2D data
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_lines3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_lines3d.py` .. raw:: html
Parametric curve
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_lorenz_attractor_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_lorenz_attractor.py` .. raw:: html
Lorenz attractor
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_mixed_subplots_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_mixed_subplots.py` .. raw:: html
2D and 3D axes in same figure
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_offset_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_offset.py` .. raw:: html
Automatic text offsetting
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_pathpatch3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_pathpatch3d.py` .. raw:: html
Draw flat objects in 3D plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_polys3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_polys3d.py` .. raw:: html
Generate polygons to fill under 3D line graph
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_projections_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_projections.py` .. raw:: html
3D plot projection types
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_quiver3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_quiver3d.py` .. raw:: html
3D quiver plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_rotate_axes3d_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_rotate_axes3d_sgskip.py` .. raw:: html
Rotating a 3D plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_scatter3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_scatter3d.py` .. raw:: html
3D scatterplot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_stem3d_demo_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_stem3d_demo.py` .. raw:: html
3D stem
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_subplot3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_subplot3d.py` .. raw:: html
3D plots as subplots
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_surface3d.py` .. raw:: html
3D surface (colormap)
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_2_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_surface3d_2.py` .. raw:: html
3D surface (solid color)
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_3_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_surface3d_3.py` .. raw:: html
3D surface (checkerboard)
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_surface3d_radial_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_surface3d_radial.py` .. raw:: html
3D surface with polar coordinates
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_text3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_text3d.py` .. raw:: html
Text annotations in 3D
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_tricontour3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_tricontour3d.py` .. raw:: html
Triangular 3D contour plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_tricontourf3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_tricontourf3d.py` .. raw:: html
Triangular 3D filled contour plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_trisurf3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_trisurf3d.py` .. raw:: html
Triangular 3D surfaces
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_trisurf3d_2_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_trisurf3d_2.py` .. raw:: html
More triangular 3D surfaces
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_view_planes_3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_view_planes_3d.py` .. raw:: html
Primary 3D view planes
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_voxels_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_voxels.py` .. raw:: html
3D voxel / volumetric plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_voxels_numpy_logo_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_voxels_numpy_logo.py` .. raw:: html
3D voxel plot of the NumPy logo
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_voxels_rgb_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_voxels_rgb.py` .. raw:: html
3D voxel / volumetric plot with RGB colors
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_voxels_torus_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_voxels_torus.py` .. raw:: html
3D voxel / volumetric plot with cylindrical coordinates
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_wire3d.py` .. raw:: html
3D wireframe plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_animation_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_wire3d_animation_sgskip.py` .. raw:: html
Animate a 3D wireframe plot
.. raw:: html
.. only:: html .. image:: /gallery/mplot3d/images/thumb/sphx_glr_wire3d_zero_stride_thumb.png :alt: :ref:`sphx_glr_gallery_mplot3d_wire3d_zero_stride.py` .. raw:: html
3D wireframe plots in one direction
.. raw:: html
Scales ====== These examples cover how different scales are handled in Matplotlib. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_asinh_demo_thumb.png :alt: :ref:`sphx_glr_gallery_scales_asinh_demo.py` .. raw:: html
Asinh Demo
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_aspect_loglog_thumb.png :alt: :ref:`sphx_glr_gallery_scales_aspect_loglog.py` .. raw:: html
Loglog Aspect
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_custom_scale_thumb.png :alt: :ref:`sphx_glr_gallery_scales_custom_scale.py` .. raw:: html
Custom scale
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_log_bar_thumb.png :alt: :ref:`sphx_glr_gallery_scales_log_bar.py` .. raw:: html
Log Bar
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_log_demo_thumb.png :alt: :ref:`sphx_glr_gallery_scales_log_demo.py` .. raw:: html
Log Demo
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_logit_demo_thumb.png :alt: :ref:`sphx_glr_gallery_scales_logit_demo.py` .. raw:: html
Logit Demo
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_power_norm_thumb.png :alt: :ref:`sphx_glr_gallery_scales_power_norm.py` .. raw:: html
Exploring normalizations
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_scales_thumb.png :alt: :ref:`sphx_glr_gallery_scales_scales.py` .. raw:: html
Scales
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_semilogx_demo_thumb.png :alt: :ref:`sphx_glr_gallery_scales_semilogx_demo.py` .. raw:: html
Log Axis
.. raw:: html
.. only:: html .. image:: /gallery/scales/images/thumb/sphx_glr_symlog_demo_thumb.png :alt: :ref:`sphx_glr_gallery_scales_symlog_demo.py` .. raw:: html
Symlog Demo
.. raw:: html
Specialty plots =============== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_advanced_hillshading_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_advanced_hillshading.py` .. raw:: html
Hillshading
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_anscombe_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_anscombe.py` .. raw:: html
Anscombe's quartet
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_hinton_demo_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_hinton_demo.py` .. raw:: html
Hinton diagrams
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_ishikawa_diagram_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_ishikawa_diagram.py` .. raw:: html
Ishikawa Diagram
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_leftventricle_bullseye_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_leftventricle_bullseye.py` .. raw:: html
Left ventricle bullseye
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_mri_with_eeg_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_mri_with_eeg.py` .. raw:: html
MRI with EEG
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_radar_chart_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_radar_chart.py` .. raw:: html
Radar chart (aka spider or star chart)
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_sankey_basics_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_sankey_basics.py` .. raw:: html
The Sankey class
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_sankey_links_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_sankey_links.py` .. raw:: html
Long chain of connections using Sankey
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_sankey_rankine_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_sankey_rankine.py` .. raw:: html
Rankine power cycle
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_skewt_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_skewt.py` .. raw:: html
SkewT-logP diagram: using transforms and custom projections
.. raw:: html
.. only:: html .. image:: /gallery/specialty_plots/images/thumb/sphx_glr_topographic_hillshading_thumb.png :alt: :ref:`sphx_glr_gallery_specialty_plots_topographic_hillshading.py` .. raw:: html
Topographic hillshading
.. raw:: html
Spines ====== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/spines/images/thumb/sphx_glr_spines_thumb.png :alt: :ref:`sphx_glr_gallery_spines_spines.py` .. raw:: html
Spines
.. raw:: html
.. only:: html .. image:: /gallery/spines/images/thumb/sphx_glr_spine_placement_demo_thumb.png :alt: :ref:`sphx_glr_gallery_spines_spine_placement_demo.py` .. raw:: html
Spine placement
.. raw:: html
.. only:: html .. image:: /gallery/spines/images/thumb/sphx_glr_spines_dropped_thumb.png :alt: :ref:`sphx_glr_gallery_spines_spines_dropped.py` .. raw:: html
Dropped spines
.. raw:: html
.. only:: html .. image:: /gallery/spines/images/thumb/sphx_glr_multiple_yaxis_with_spines_thumb.png :alt: :ref:`sphx_glr_gallery_spines_multiple_yaxis_with_spines.py` .. raw:: html
Multiple y-axis with Spines
.. raw:: html
.. only:: html .. image:: /gallery/spines/images/thumb/sphx_glr_centered_spines_with_arrows_thumb.png :alt: :ref:`sphx_glr_gallery_spines_centered_spines_with_arrows.py` .. raw:: html
Centered spines with arrows
.. raw:: html
Ticks ===== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_auto_ticks_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_auto_ticks.py` .. raw:: html
Automatically setting tick positions
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_centered_ticklabels_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_centered_ticklabels.py` .. raw:: html
Centering labels between ticks
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_colorbar_tick_labelling_demo_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_colorbar_tick_labelling_demo.py` .. raw:: html
Colorbar Tick Labelling
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_custom_ticker1_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_custom_ticker1.py` .. raw:: html
Custom Ticker
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_concise_formatter_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_concise_formatter.py` .. raw:: html
Formatting date ticks using ConciseDateFormatter
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_demo_convert_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_demo_convert.py` .. raw:: html
Date Demo Convert
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_demo_rrule_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_demo_rrule.py` .. raw:: html
Placing date ticks using recurrence rules
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_formatters_locators_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_formatters_locators.py` .. raw:: html
Date tick locators and formatters
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_index_formatter_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_index_formatter.py` .. raw:: html
Custom tick formatter for time series
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_date_precision_and_epochs_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_date_precision_and_epochs.py` .. raw:: html
Date Precision and Epochs
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_dollar_ticks_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_dollar_ticks.py` .. raw:: html
Dollar ticks
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_fig_axes_customize_simple_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_fig_axes_customize_simple.py` .. raw:: html
Fig Axes Customize Simple
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_major_minor_demo_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_major_minor_demo.py` .. raw:: html
Major and minor ticks
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_multilevel_ticks_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_multilevel_ticks.py` .. raw:: html
Multilevel (nested) ticks
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_scalarformatter_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_scalarformatter.py` .. raw:: html
The default tick formatter
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_tick-formatters_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_tick-formatters.py` .. raw:: html
Tick formatters
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_tick-locators_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_tick-locators.py` .. raw:: html
Tick locators
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_tick_label_right_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_tick_label_right.py` .. raw:: html
Set default y-axis tick labels on the right
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_tick_labels_from_values_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_tick_labels_from_values.py` .. raw:: html
Setting tick labels from a list of values
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_tick_xlabel_top_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_tick_xlabel_top.py` .. raw:: html
Move x-axis tick labels to the top
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_ticklabels_rotation_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_ticklabels_rotation.py` .. raw:: html
Rotating custom tick labels
.. raw:: html
.. only:: html .. image:: /gallery/ticks/images/thumb/sphx_glr_ticks_too_many_thumb.png :alt: :ref:`sphx_glr_gallery_ticks_ticks_too_many.py` .. raw:: html
Fixing too many ticks
.. raw:: html
Units ===== These examples cover the many representations of units in Matplotlib. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_annotate_with_units_thumb.png :alt: :ref:`sphx_glr_gallery_units_annotate_with_units.py` .. raw:: html
Annotation with units
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_artist_tests_thumb.png :alt: :ref:`sphx_glr_gallery_units_artist_tests.py` .. raw:: html
Artist tests
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_bar_demo2_thumb.png :alt: :ref:`sphx_glr_gallery_units_bar_demo2.py` .. raw:: html
Bar demo with units
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_bar_unit_demo_thumb.png :alt: :ref:`sphx_glr_gallery_units_bar_unit_demo.py` .. raw:: html
Group barchart with units
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_basic_units_thumb.png :alt: :ref:`sphx_glr_gallery_units_basic_units.py` .. raw:: html
Basic Units
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_ellipse_with_units_thumb.png :alt: :ref:`sphx_glr_gallery_units_ellipse_with_units.py` .. raw:: html
Ellipse with units
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_evans_test_thumb.png :alt: :ref:`sphx_glr_gallery_units_evans_test.py` .. raw:: html
Evans test
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_radian_demo_thumb.png :alt: :ref:`sphx_glr_gallery_units_radian_demo.py` .. raw:: html
Radian ticks
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_units_sample_thumb.png :alt: :ref:`sphx_glr_gallery_units_units_sample.py` .. raw:: html
Inches and Centimeters
.. raw:: html
.. only:: html .. image:: /gallery/units/images/thumb/sphx_glr_units_scatter_thumb.png :alt: :ref:`sphx_glr_gallery_units_units_scatter.py` .. raw:: html
Unit handling
.. raw:: html
Embedding Matplotlib in graphical user interfaces ================================================= You can embed Matplotlib directly into a user interface application by following the embedding_in_SOMEGUI.py examples here. Currently Matplotlib supports PyQt/PySide, PyGObject, Tkinter, and wxPython. When embedding Matplotlib in a GUI, you must use the Matplotlib API directly rather than the pylab/pyplot procedural interface, so take a look at the examples/api directory for some example code working with the API. .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_canvasagg_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_canvasagg.py` .. raw:: html
CanvasAgg demo
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk3_panzoom_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk3_panzoom_sgskip.py` .. raw:: html
Embedding in GTK3 with a navigation toolbar
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk3_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk3_sgskip.py` .. raw:: html
Embedding in GTK3
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk4_panzoom_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk4_panzoom_sgskip.py` .. raw:: html
Embedding in GTK4 with a navigation toolbar
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_gtk4_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_gtk4_sgskip.py` .. raw:: html
Embedding in GTK4
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_qt_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_qt_sgskip.py` .. raw:: html
Embedding in Qt
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_tk_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_tk_sgskip.py` .. raw:: html
Embedding in Tk
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx2_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx2_sgskip.py` .. raw:: html
Embedding in wx #2
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx3_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx3_sgskip.py` .. raw:: html
Embedding in wx #3
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx4_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx4_sgskip.py` .. raw:: html
Embedding in wx #4
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_in_wx5_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_in_wx5_sgskip.py` .. raw:: html
Embedding in wx #5
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_embedding_webagg_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_embedding_webagg_sgskip.py` .. raw:: html
Embedding WebAgg
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_fourier_demo_wx_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_fourier_demo_wx_sgskip.py` .. raw:: html
Fourier Demo WX
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_gtk3_spreadsheet_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_gtk3_spreadsheet_sgskip.py` .. raw:: html
GTK3 spreadsheet
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_gtk4_spreadsheet_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_gtk4_spreadsheet_sgskip.py` .. raw:: html
GTK4 spreadsheet
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_mathtext_wx_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_mathtext_wx_sgskip.py` .. raw:: html
Display mathtext in WX
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_mpl_with_glade3_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_mpl_with_glade3_sgskip.py` .. raw:: html
Matplotlib with Glade 3
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_mplcvd_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_mplcvd.py` .. raw:: html
mplcvd -- an example of figure hook
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_pylab_with_gtk3_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_pylab_with_gtk3_sgskip.py` .. raw:: html
pyplot with GTK3
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_pylab_with_gtk4_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_pylab_with_gtk4_sgskip.py` .. raw:: html
pyplot with GTK4
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_svg_histogram_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_svg_histogram_sgskip.py` .. raw:: html
SVG Histogram
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_svg_tooltip_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_svg_tooltip_sgskip.py` .. raw:: html
SVG Tooltip
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_toolmanager_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_toolmanager_sgskip.py` .. raw:: html
Tool Manager
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_web_application_server_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_web_application_server_sgskip.py` .. raw:: html
Embedding in a web application server (Flask)
.. raw:: html
.. only:: html .. image:: /gallery/user_interfaces/images/thumb/sphx_glr_wxcursor_demo_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_user_interfaces_wxcursor_demo_sgskip.py` .. raw:: html
Adding a cursor in WX
.. raw:: html
Widgets ======= Examples of how to write primitive, but GUI agnostic, widgets in matplotlib .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_annotated_cursor_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_annotated_cursor.py` .. raw:: html
Annotated cursor
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_buttons_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_buttons.py` .. raw:: html
Buttons
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_check_buttons_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_check_buttons.py` .. raw:: html
Check buttons
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_cursor_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_cursor.py` .. raw:: html
Cursor
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_lasso_selector_demo_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_lasso_selector_demo_sgskip.py` .. raw:: html
Lasso Selector
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_menu_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_menu.py` .. raw:: html
Menu
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_mouse_cursor_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_mouse_cursor.py` .. raw:: html
Mouse Cursor
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_multicursor_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_multicursor.py` .. raw:: html
Multicursor
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_polygon_selector_demo_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_polygon_selector_demo.py` .. raw:: html
Select indices from a collection using polygon selector
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_polygon_selector_simple_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_polygon_selector_simple.py` .. raw:: html
Polygon Selector
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_radio_buttons_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_radio_buttons.py` .. raw:: html
Radio Buttons
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_range_slider_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_range_slider.py` .. raw:: html
Thresholding an Image with RangeSlider
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_rectangle_selector_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_rectangle_selector.py` .. raw:: html
Rectangle and ellipse selectors
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_slider_demo_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_slider_demo.py` .. raw:: html
Slider
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_slider_snap_demo_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_slider_snap_demo.py` .. raw:: html
Snapping Sliders to Discrete Values
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_span_selector_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_span_selector.py` .. raw:: html
Span Selector
.. raw:: html
.. only:: html .. image:: /gallery/widgets/images/thumb/sphx_glr_textbox_thumb.png :alt: :ref:`sphx_glr_gallery_widgets_textbox.py` .. raw:: html
Textbox
.. raw:: html
Userdemo ======== .. raw:: html
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_annotate_explain_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_annotate_explain.py` .. raw:: html
Annotate Explain
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_annotate_text_arrow_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_annotate_text_arrow.py` .. raw:: html
Annotate Text Arrow
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_connectionstyle_demo_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_connectionstyle_demo.py` .. raw:: html
Connection styles for annotations
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_custom_boxstyle01_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_custom_boxstyle01.py` .. raw:: html
Custom box styles
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec01_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_demo_gridspec01.py` .. raw:: html
subplot2grid demo
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec03_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_demo_gridspec03.py` .. raw:: html
GridSpec demo
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_demo_gridspec06_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_demo_gridspec06.py` .. raw:: html
Nested GridSpecs
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_pgf_fonts_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_pgf_fonts.py` .. raw:: html
PGF fonts
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_pgf_preamble_sgskip_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_pgf_preamble_sgskip.py` .. raw:: html
PGF preamble
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_pgf_texsystem_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_pgf_texsystem.py` .. raw:: html
PGF texsystem
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_simple_annotate01_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_simple_annotate01.py` .. raw:: html
Simple Annotate01
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_simple_legend01_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_simple_legend01.py` .. raw:: html
Simple Legend01
.. raw:: html
.. only:: html .. image:: /gallery/userdemo/images/thumb/sphx_glr_simple_legend02_thumb.png :alt: :ref:`sphx_glr_gallery_userdemo_simple_legend02.py` .. raw:: html
Simple Legend02
.. raw:: html
.. toctree:: :hidden: :includehidden: /gallery/lines_bars_and_markers/index.rst /gallery/images_contours_and_fields/index.rst /gallery/subplots_axes_and_figures/index.rst /gallery/statistics/index.rst /gallery/pie_and_polar_charts/index.rst /gallery/text_labels_and_annotations/index.rst /gallery/color/index.rst /gallery/shapes_and_collections/index.rst /gallery/style_sheets/index.rst /gallery/pyplots/index.rst /gallery/axes_grid1/index.rst /gallery/axisartist/index.rst /gallery/showcase/index.rst /gallery/animation/index.rst /gallery/event_handling/index.rst /gallery/misc/index.rst /gallery/mplot3d/index.rst /gallery/scales/index.rst /gallery/specialty_plots/index.rst /gallery/spines/index.rst /gallery/ticks/index.rst /gallery/units/index.rst /gallery/user_interfaces/index.rst /gallery/widgets/index.rst /gallery/userdemo/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: gallery_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: gallery_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_