Annotations edit page

## Colorbars

Unlike the common Matlab command colorbar the MTEX command mtexColorbar allows you to add a colorbar to all subplots in a figure.

Executing the command mtexColorbar twice deletes the colorbar. You can also have a horizontal colorbar at the bottom of the figure by setting the option location to southOutside. Further, we can set a title to the colorbar to describe the unit.

If color range is set to equal in an MTEX figure only one colorbar is added (see. Color Coding).

## Annotating Directions, Orientations, Fibres

Pole figures and inverse pole figures are much better readable if they include specimen or crystal directions. Using the MTEX command annotate one can easily add specimen coordinate axes to a pole figure plot.

The command annotate allows also to mark crystal directions in inverse pole figures.

One can also mark specific orientations in pole figures or in inverse pole figures.

as well as in ODF plots

or orientation scatter plots

## Legends

If you have multiple data in one plot then it makes sense to add a legend saying which color / symbol correspond to which data set. The key is to use the option DisplayName available for all plotting commands to include the resulting graphical object into the legend and give it a name.

The following example compares the Fourier coefficients of the fibre ODF with the Fourier coefficients of an unimodal ODF.