# Plotting Overview

Overview over the plotting facilities of MTEX, including annotations, plot types, color coding, combined plots and export of plots.

 On this page ... Plotting in MTEX Plot Types Spherical Projections Color Coding Plot Annotations Combined Plots Exporting Plots

## Plotting in MTEX

In MTEX you can plot almost any type data. Simply apply the plot command to any variable and MTEX tries to plot the content of the variable in the most intuitive way. In this way, you can plot three Miller indices, rotations, pole figures, or ODFs. MTEX also offers you a wide range of possibilities to customize your plots, e.g. by changing the plot style, the spherical projection, the color coding, or by adding colorbars or other annotations to the plot. You can even combine plots of different ODFs or EBSD data. This way MTEX allows you to create publication-ready plots which can be exported to almost any format using the commands savefigure.

## Plot Types

In general, MTEX knows the following plot types

• contour plots
• filled contour plots
• smoots plots
• scatter plots
• line plots

Contour plots are plots consisting only of contour lines and mainly used for pole figure or ODF plots. For raw pole figure data, MTEX uses by default a plot where each datapoint is represented by a single dot colored accordingly to the intensity. Line plots are used by MTEX for one- dimensional ODF plots, plots of Fourier coefficients and plots of kernel functions

## Spherical Projections

Whenever MTEX plots pole figures, ODFs, or crystal or specimen directions MTEX uses spherical projections to map the spherical data to the plane. By doing so MTEX supports a wide variety of spherical projections, i.e.,

• equal area projection (Schmidt)
• equal distance projection
• equal angle projection (stereographic)
• plain
• 3d plots

## Color Coding

A central issue when interpreting plots is to have a consistent color coding among all plots. In MTEX this can be achieved in two ways. If the minimum and maximum values are known then one can use one of the following syntaxes to have a consistent color coding.

• Specifying the colorrange
• Setting a logarithmic color scale
• Switching to a monochrome color scale * See also color coding EBSD.

## Plot Annotations

After generating a plot with MTEX it is possible to modify it interactively using the MATLAB plotting tools in the plotting figure. This includes