function TernView(theAxes)

% TernView -- View for TernPlot.
 
% Copyright (C) 1996 Dr. Charles R. Denham, ZYDECO.
% All Rights Reserved.
 
% Version of 12-Sep-96 at 11:33:23.5.

if nargin < 1, theAxes = gca; end

az = -asin(1 ./ sqrt(2)) .* 180 ./ pi;   % -45 deg.
el = -asin(1 ./ sqrt(3)) .* 180 ./ pi;   % -35.2644 deg.

az = az + 180;
el = -el;

axes(theAxes)
view([az el])
