42 p = surf(h,X,Y,Z,
" FaceColor ",
" interp ",
" EdgeColor ",
" k ",varargin[:]);
61 p = surfc(h,X,Y,Z,
" FaceColor ",
" interp ",
" EdgeColor ",
" k ",varargin[:]);
82 if isvector(X) && isvector(Y)
83 [
X,
Y] = meshgrid(X,Y);
86 Z(iszero) = .5*min(Z(:));
110 if isvector(X) && isvector(Y)
111 [
X,
Y] = meshgrid(X,Y);
114 Z(iszero) = .5*min(Z(:));
138 p = trisurf(tri, x, y, z,
" Parent ",h,
" FaceColor ",
" interp ",
" EdgeColor ",
" k ",varargin[:]);
159 if any(y(:)) < 0 ||
all(max(y)./min(y) < 50)
164 set(ax,
" YScale ",
" log ");
167 p = pfun(ax,x,y,varargin[:]);
186 static function postprocess(h) {
187 if all(strcmp(
" auto ",[
get(h,
" XLimMode "),
get(h,
" YLimMode "),
get(h,
" ZLimMode ")]))
190 lbl = arrayfun(@(e)sprintf(" %1.1e ",e),10.^get(h," ZTick ")," Unif ",false);
191 set(h," ZTickLabel ",lbl," ZTickMode "," manual ");
LogPlot: Class with static functions for logarithmic plotting.
static function handle p = nicesurfc(handle h,matrix< double > X,matrix< double > Y,matrix< double > Z, varargin)
Creates a nice surface plot including a contour with the given data.
static function handle p = logtrisurf(handle h, tri,rowvec< double > x,rowvec< double > y,rowvec< double > z, varargin)
Creates a surface plot from a 2D triangulation in a logarithmic scale.
Matlab's base handle class (documentation generation substitute)
static function handle p = logsurf(handle h,matrix< double > X,matrix< double > Y,matrix< double > Z, varargin)
Creates a nice surface plot in a logarithmic scale with the given data.
static function handle p = cleverPlot(handle ax,rowvec< double > x,rowvec< double > y, varargin)
Calls corresponding plot routines depending on the scale of data.
A variable number of input arguments.
static function handle p = logsurfc(handle h,matrix< double > X,matrix< double > Y,matrix< double > Z, varargin)
Creates a nice surface plot including a contour with the given data in a logarithmic scale...
static function handle p = nicesurf(handle h,matrix< double > X,matrix< double > Y,matrix< double > Z, varargin)
Creates a nice surface plot with the given data.