Setting contour levels or intervals and combining contour lines with color shading

202 views
Skip to first unread message

David Mainprice

unread,
Nov 8, 2012, 6:39:15 AM11/8/12
to mtex...@googlegroups.com

  • MTEX 3.3.1 (latest version)

Can one set contour levels or often it is more practical to set the contour interval for
a) pole figures, inverse pole figures and odfs
b) physical properties plots e.g. P-wave velocity

In standard MATLAB routines use can set the contour levels.
cl = [-7:1:10];         % Define contour levels for all plots
contour(Z, cl)

It would be nice to be able to plot contours in single color like black or white on top of the smooth color representation.

David Mainprice

Ralf Hielscher

unread,
Nov 8, 2012, 2:37:35 PM11/8/12
to mtex...@googlegroups.com
Dear David,

to plot a filled contour plot with lines at 0, 0.5, 1, 1.25, 1.5 one has the command

plotpdf(SantaFe,Miller(1,0,0),'contourf',[0, 0.5, 1, 1.25, 1.5])

analogously you can have pure contour plots using

plotpdf(SantaFe,Miller(1,0,0),'contour',[0, 0.5, 1, 1.25, 1.5])

Plotting contour levels on top of an smooth plot is not supported by MTEX 3.3 but will be possible in MTEX 3.4

Ralf.
Reply all
Reply to author
Forward
0 new messages