plot edit page

plot grain boundaries

The function plots grain boundaries.

Syntax

plot(grains.boundary)
plot(grains.innerBoundary,'linecolor','r')
plot(gB('Forsterite','Forsterite'),gB('Forsterite','Forsterite').misorientation.angle)
% colorize segments according to a list of RGB values
plot(gB('Forsterite','Forsterite'),color)

Input

grains grain2d
gB grainBoundary
color n x 3 list of RGB values

Options

lineWidth line width
lineColor line color
edgeAlpha (list of) transparency values between 0 and 1
region [xMin xMax yMin yMax] plot only a subRegion
displayName label to appear in the legend
smooth try to make a smooth connections at the vertices