How to customize contour line labels?
问题 I would like to visualize a function of two variables in a contour plot using Octave, and to put customized line labels on it. Building on the Octave documentation, I wrote: clf; colormap ("default"); [x, y, z] = peaks (); subplot(2,1,1); contour (x, y, z,'showtext', 'on'); title ({"contour() plot, showtext on"; "Z = peaks()"}); subplot(2,1,2); [ctr, h] = contour (x, y, z); cll = clabel(ctr, h, 'backgroundcolor',[1 1 1]); title ({"contour() plot, using clabel()"; "Z = peaks()"}); Which