Plot Types
Explains the different plot types, i.e., scatter plots, contour plots, and line plots.
On this page ... |
A Sample ODFs |
Scatter Plots |
Contour Plots |
Filled Contour Plots |
Smooth Interpolated Plots |
Line Plots |
A Sample ODFs
Let us first define a model ODF to be plotted later on.
cs = crystalSymmetry('-3m'); odf = fibreODF(Miller(1,1,0,cs),zvector) pf = calcPoleFigure(odf,Miller(1,0,0,cs),equispacedS2Grid('antipodal'));
odf = ODF crystal symmetry : -3m1, X||a*, Y||b, Z||c* specimen symmetry: 1 Fibre symmetric portion: kernel: de la Vallee Poussin, halfwidth 10° fibre: (11-20) - 0,0,1 weight: 1
and simulate some EBSD data
ori = calcOrientations(odf,100)
ori = orientation size: 100 x 1 crystal symmetry : -3m1, X||a*, Y||b, Z||c* specimen symmetry: 1
Scatter Plots
In a scatter plots indivudal points are plotted. This plot is usually applied when individual orientations or pole figure measurements are vizualized.
close all
scatter(ori)

Three dimensional vectors, Miller indices, spherical grids are plotted as single markers in a spherical projection. The shape, size and color of the markers can be adjusted using the following parameters (see also scattergroup_properties)
Marker, MarkerSize, MarkerFaceColor, MarkerEdgeColor
plot(zvector,'Marker','p','MarkerSize',15,'MarkerFaceColor','red','MarkerEdgeColor','black')

One can also assign a label to a marker. The main options controling the label are (see text_properties)
Label, Color, BackgroundColor, FontSize
plot([Miller(1,1,1,cs),Miller(-1,1,1,cs)],... 'label',{'X','Y'},... 'Color','blue','BackgroundColor','yellow','FontSize',20,'grid')

A scatter plot is also used to draw raw pole figure data. In this case each datapoint is represented by a single dot colored accordingly to the intensity.
plot(pf)

Contour Plots
Contour plots are plots consisting only of contour lines and are mainly used for pole figure and ODF plots. The number or exact location of the contour levels can be specified as an option. (See contourgroup_properties for more options!)
plotPDF(odf,Miller(1,0,0,cs),'contour',0:0.5:4,'antipodal')

Filled Contour Plots
Filled contour plots are obtained by the option contourf. Again you may pass as an option the number of contour lines or its exact location.
plotPDF(odf,Miller(1,0,0,cs),'contourf','antipodal')

Smooth Interpolated Plots
The default plotting style for pole figures and ODFs is smooth. Which results in a colored plot without contour lines. Here one can specify the resolution of the plot using the option resolution.
plotPDF(odf,Miller(1,0,0,cs),'antipodal','resolution',10*degree)

Line Plots
Line plots are used by MTEX for one dimesional ODF plots, plots of Fourier coefficients and plots of kernel functions functions. They can be customized by the standard MATLAB linespec options. See linespec!
%plotODF(odf,'radially','linewidth',2,'linestyle','-.')
MTEX 4.0.10 |