Mercurial > hg > octave-nkf
view scripts/plot/__plt3__.m @ 6179:235a1b456cf4
[project @ 2006-11-17 17:33:09 by jwe]
author | jwe |
---|---|
date | Fri, 17 Nov 2006 17:33:09 +0000 |
parents | 2de853a110df |
children | 44c91c5dfe1d |
line wrap: on
line source
## Copyright (C) 1996 John W. Eaton ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2, or (at your option) ## any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, write to the Free ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA ## 02110-1301, USA. ## -*- texinfo -*- ## @deftypefn {Function File} {} __plt3__ (@var{x}, @var{y}, @var{z}, @var{fmt}) ## @end deftypefn ## Author: Paul Kienzle <kienzle.powernet.co.uk> ## 2001-04-06 Paul Kienzle <kienzle.powernet.co.uk> ## * __gnuplot_set__ nohidden3d; vector X,Y, matrix Z => meshgrid(X,Y) ## Modified to use new gnuplot interface in octave > 2.9.0 ## Dmitri A. Sergatskov <dasergatskov@gmail.com> ## April 18, 2005 ## Modified to use NaN as seperator for gnuplot, so multiple calls ## aren't needed. ## David Bateman <dbateman@free.fr> ## May 25, 2006 function __plt3__ (x, parametric, usingstr, fmtstr, keystr, withstr) if (nargin < 2) parametric = false; endif if (nargin < 3) have_usingstr = false; usingstr = ""; else have_usingstr = true; endif if (nargin < 4) fmtstr = ""; endif if (nargin < 5) keystr = ""; endif if (nargin < 6) withstr = ""; endif __plot_globals__; cf = __current_figure__; mxi = __multiplot_xi__(cf); myi = __multiplot_yi__(cf); __setup_plot__ ("splot"); j = __plot_data_offset__{cf}(mxi,myi); __plot_data__{cf}{mxi,myi}{j}{1} = x; __plot_data_type__{cf}{mxi,myi}(j) = 3; __plot_data_parametric__{cf}{mxi,myi}{j}{1} = parametric; __plot_key_labels__{cf}{mxi,myi}{j}{1} = keystr; __plot_fmtstr__{cf}{mxi,myi}{j}{1} = fmtstr; if (have_usingstr) __plot_usingstr__{cf}{mxi,myi}{j}{1} = usingstr; else __plot_usingstr__{cf}{mxi,myi}{j}{1} = __make_using_clause__(x); endif __plot_withstr__{cf}{mxi,myi}{j}{1} = withstr; __plot_data_offset__{cf}(mxi,myi) = ++j; __render_plot__ (); endfunction