Options edit page

Many functions provided by MTEX can be customized by options. An option is passed to a method as a string parameter followed by a value. For example, almost all plotting methods support the option resolution followed by a double value specifying the resolution in radians. The code below demonstrates the effect of changing this parameter.

odf = SantaFe
plotPDF(odf,Miller(1,0,0,odf.CS),'resolution',10*degree,'contour','linewidth',2);
odf = ODF (m-3m → xyz (222))
 
  Uniform portion:
    weight: 0.73
 
  Radially symmetric portion:
    kernel: van Mises Fisher, halfwidth 10°
    center: (296.6°,48.2°,26.6°)
    weight: 0.27
plotPDF(odf,Miller(1,0,0,odf.CS),'resolution',2.5*degree,'contour','linewidth',2);

Options that are not followed by a value are called flags. In the above example, contour is a flag that tells the plotting routine to plot contour lines. Options and flags to a function are always optional and can be passed in any order. If conflicting options or flags are passed, i.e., the resolution is specified twice, the later option in the list is considered to be the right one.