:orphan: Examples ======== A collection of short, self-contained examples. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. thumbnail-parent-div-close .. raw:: html
Benchmarks ---------- Timing comparisons for the Python-side data-push pipeline in anyplotlib, matplotlib, Plotly, and Bokeh. All measurements capture only the **Python serialisation cost** — the bottleneck in a live Jupyter session where new data must be encoded and dispatched to the browser on every frame. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/Benchmarks/images/thumb/sphx_glr_plot_benchmark_comparison_thumb.png :alt: :doc:`/auto_examples/Benchmarks/plot_benchmark_comparison` .. raw:: html
Plot Update Comparison
.. thumbnail-parent-div-close .. raw:: html
Interactive Examples ==================== Examples that use the callback / event system to connect widget interactions to live Python computations. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_figure_annotations_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_figure_annotations` .. raw:: html
Interactive figure annotations — double-click to add, drag to place
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_point_widget_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_point_widget` .. raw:: html
Draggable Point Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_key_bindings_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_key_bindings` .. raw:: html
Key-Press Widget Placement
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_threshold_explorer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_threshold_explorer` .. raw:: html
Live intensity thresholding on a multi-phase STEM image.
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_ipf_explorer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_ipf_explorer` .. raw:: html
Inverse Pole Figure (IPF) Explorer
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_interactive_fft_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_interactive_fft` .. raw:: html
Interactive FFT ROI
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_eels_explorer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_eels_explorer` .. raw:: html
EELS multi-spectrum explorer.
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_3d_spectral_viewer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_3d_spectral_viewer` .. raw:: html
Interactive 3D Spectral Viewer
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_particle_picker_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_particle_picker` .. raw:: html
HAADF STEM nanoparticle picker.
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_segment_by_contrast_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_segment_by_contrast` .. raw:: html
Interactive Contrast Segmentation
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_spectra_roi_inspector_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_spectra_roi_inspector` .. raw:: html
ROI-to-spectrum inspector for a 3-D EDS hyperspectral dataset.
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_ipf_density_map_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_ipf_density_map` .. raw:: html
Inverse Pole Figure (IPF) Density Map
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_voxel_grain_explorer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_voxel_grain_explorer` .. raw:: html
3-D Voxel Grain Explorer
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_interactive_fitting_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_interactive_fitting` .. raw:: html
Interactive 1-D Gaussian Fitting
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_segment_by_contrast_advanced_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_segment_by_contrast_advanced` .. raw:: html
Advanced Interactive Contrast Segmentation (3 × 3 Grid)
.. raw:: html
.. only:: html .. image:: /auto_examples/Interactive/images/thumb/sphx_glr_plot_star_globe_explorer_thumb.png :alt: :doc:`/auto_examples/Interactive/plot_star_globe_explorer` .. raw:: html
Star Globe Explorer — a linked celestial sphere and sky map
.. thumbnail-parent-div-close .. raw:: html
Markers ------- A collection of short examples using markers .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_horizontal_lines_thumb.png :alt: :doc:`/auto_examples/Markers/plot_horizontal_lines` .. raw:: html
Horizontal Lines
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_vertical_lines_thumb.png :alt: :doc:`/auto_examples/Markers/plot_vertical_lines` .. raw:: html
Vertical Lines
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_points_thumb.png :alt: :doc:`/auto_examples/Markers/plot_points` .. raw:: html
Points
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_texts_thumb.png :alt: :doc:`/auto_examples/Markers/plot_texts` .. raw:: html
Text Labels
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_arrows_thumb.png :alt: :doc:`/auto_examples/Markers/plot_arrows` .. raw:: html
Arrows
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_circles_thumb.png :alt: :doc:`/auto_examples/Markers/plot_circles` .. raw:: html
Circles
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_rectangles_thumb.png :alt: :doc:`/auto_examples/Markers/plot_rectangles` .. raw:: html
Rectangles
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_line_segments_thumb.png :alt: :doc:`/auto_examples/Markers/plot_line_segments` .. raw:: html
Line Segments
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_ellipses_thumb.png :alt: :doc:`/auto_examples/Markers/plot_ellipses` .. raw:: html
Ellipses
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_squares_thumb.png :alt: :doc:`/auto_examples/Markers/plot_squares` .. raw:: html
Squares
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_polygons_thumb.png :alt: :doc:`/auto_examples/Markers/plot_polygons` .. raw:: html
Polygons
.. raw:: html
.. only:: html .. image:: /auto_examples/Markers/images/thumb/sphx_glr_plot_transform_markers_thumb.png :alt: :doc:`/auto_examples/Markers/plot_transform_markers` .. raw:: html
Coordinate transforms — pin markers to the axes or the screen
.. thumbnail-parent-div-close .. raw:: html
Plot Types ---------- A collection of short examples showing different plot types. .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_step_and_log_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_step_and_log` .. raw:: html
Step lines and log-scale spectra
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_twinx_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_twinx` .. raw:: html
Twinned (secondary) y-axis
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_label_formatting_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_label_formatting` .. raw:: html
Label Sizes and Scientific (TeX) Formatting
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_3d_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_3d` .. raw:: html
3D Plotting
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_gpu_voxels_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_gpu_voxels` .. raw:: html
GPU-accelerated voxels
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_pcolormesh_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_pcolormesh` .. raw:: html
pcolormesh — non-linear axes
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_spectra1d_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_spectra1d` .. raw:: html
1D Spectra
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_inset_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_inset` .. raw:: html
Inset Plots
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_image2d_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_image2d` .. raw:: html
2D Image with Histogram
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_line_styles_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_line_styles` .. raw:: html
1D Line Styles
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_bar_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_bar` .. raw:: html
Bar Chart
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_key_overlays_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_key_overlays` .. raw:: html
Floating keys — IPF triangles and colour wheels
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_gridspec_custom_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_gridspec_custom` .. raw:: html
Custom Grid Layouts with GridSpec
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_tile_backend_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_tile_backend` .. raw:: html
Custom Tile Backend — pan & zoom a huge image you never hold in memory
.. raw:: html
.. only:: html .. image:: /auto_examples/PlotTypes/images/thumb/sphx_glr_plot_3d_texture_thumb.png :alt: :doc:`/auto_examples/PlotTypes/plot_3d_texture` .. raw:: html
Textured 3-D surfaces — a celestial globe
.. thumbnail-parent-div-close .. raw:: html
Widgets ------- Short examples of using widgets in anyplotlib .. raw:: html
.. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget1d_hline_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget1d_hline` .. raw:: html
1D Horizontal Line Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget1d_vline_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget1d_vline` .. raw:: html
1D Vertical Line Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget1d_range_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget1d_range` .. raw:: html
1D Range Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_crosshair_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_crosshair` .. raw:: html
2D Crosshair Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_circle_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_circle` .. raw:: html
2D Circle Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_rectangle_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_rectangle` .. raw:: html
2D Rectangle Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_annular_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_annular` .. raw:: html
2D Annular Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_label_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_label` .. raw:: html
2D Label Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_polygon_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_polygon` .. raw:: html
2D Polygon Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget1d_point_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget1d_point` .. raw:: html
1D Point Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget2d_arrow_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget2d_arrow` .. raw:: html
2D Arrow Widget
.. raw:: html
.. only:: html .. image:: /auto_examples/Widgets/images/thumb/sphx_glr_plot_widget3d_plane_thumb.png :alt: :doc:`/auto_examples/Widgets/plot_widget3d_plane` .. raw:: html
3D Plane Widget
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/Benchmarks/index.rst /auto_examples/Interactive/index.rst /auto_examples/Markers/index.rst /auto_examples/PlotTypes/index.rst /auto_examples/Widgets/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: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_