:orphan:
.. _examples:
========
Examples
========
This page contains short examples of common tasks using kikuchipy. It is broken up into
sections covering specific topics.
For longer in-depth guides, see our :doc:`/tutorials/index`. For descriptions of all the
functions, modules, and objects in kikuchipy, see the :doc:`/reference/index`.
.. note::
Making examples is a work in progress. The topics and examples, and thus the URLs to
examples, might change between releases. The :doc:`/tutorials/index` represent a
complete showcase of the existing functionality in kikuchipy.
.. raw:: html
.. raw:: html
Pattern processing
==================
These examples cover processing of pattern intensities like binning and background
subtraction.
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /examples/pattern_processing/images/thumb/sphx_glr_pattern_binning_thumb.png
:alt:
:ref:`sphx_glr_examples_pattern_processing_pattern_binning.py`
.. raw:: html
Pattern binning
.. raw:: html
.. only:: html
.. image:: /examples/pattern_processing/images/thumb/sphx_glr_static_background_correction_thumb.png
:alt:
:ref:`sphx_glr_examples_pattern_processing_static_background_correction.py`
.. raw:: html
Static background correction
.. raw:: html
.. only:: html
.. image:: /examples/pattern_processing/images/thumb/sphx_glr_dynamic_background_correction_thumb.png
:alt:
:ref:`sphx_glr_examples_pattern_processing_dynamic_background_correction.py`
.. raw:: html
Dynamic background correction
.. raw:: html
.. only:: html
.. image:: /examples/pattern_processing/images/thumb/sphx_glr_neighbour_pattern_averaging_thumb.png
:alt:
:ref:`sphx_glr_examples_pattern_processing_neighbour_pattern_averaging.py`
.. raw:: html
Neighbour pattern averaging
.. raw:: html
.. only:: html
.. image:: /examples/pattern_processing/images/thumb/sphx_glr_adaptive_histogram_equalization_thumb.png
:alt:
:ref:`sphx_glr_examples_pattern_processing_adaptive_histogram_equalization.py`
.. raw:: html
Adaptive histogram equalization
.. raw:: html
Reference frames
================
These examples cover use of tools like the :class:`~kikuchipy.detectors.EBSDDetector`
for understanding reference frames relevant to EBSD.
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /examples/reference_frames/images/thumb/sphx_glr_fit_plane_to_selected_pc_thumb.png
:alt:
:ref:`sphx_glr_examples_reference_frames_fit_plane_to_selected_pc.py`
.. raw:: html
Fit a plane to selected projection centers
.. raw:: html
.. only:: html
.. image:: /examples/reference_frames/images/thumb/sphx_glr_estimate_tilt_about_detector_xaxis_thumb.png
:alt:
:ref:`sphx_glr_examples_reference_frames_estimate_tilt_about_detector_xaxis.py`
.. raw:: html
Estimate tilt about the detector x axis
.. raw:: html
.. only:: html
.. image:: /examples/reference_frames/images/thumb/sphx_glr_estimate_tilts_about_detector_xaxis_zaxis_thumb.png
:alt:
:ref:`sphx_glr_examples_reference_frames_estimate_tilts_about_detector_xaxis_zaxis.py`
.. raw:: html
Estimate tilts about the detector x and z axis
.. raw:: html
Selecting data
==============
These examples cover selection of data via extraction a subset of the navigation and/or
signal axes.
.. raw:: html
.. raw:: html
.. only:: html
.. image:: /examples/selecting_data/images/thumb/sphx_glr_crop_navigation_axes_thumb.png
:alt:
:ref:`sphx_glr_examples_selecting_data_crop_navigation_axes.py`
.. raw:: html
Crop navigation axes
.. raw:: html
.. only:: html
.. image:: /examples/selecting_data/images/thumb/sphx_glr_crop_signal_axes_thumb.png
:alt:
:ref:`sphx_glr_examples_selecting_data_crop_signal_axes.py`
.. raw:: html
Crop signal axes
.. raw:: html
.. only:: html
.. image:: /examples/selecting_data/images/thumb/sphx_glr_extract_patterns_from_grid_thumb.png
:alt:
:ref:`sphx_glr_examples_selecting_data_extract_patterns_from_grid.py`
.. raw:: html
Extract patterns from a grid
.. raw:: html
Visualization
=============
These examples cover visualization of Kikuchi patterns and derived maps.
.. raw:: html