Mercurial > hg > octave-terminal
changeset 629:0788882808bc
[project @ 1994-08-19 14:33:40 by jwe]
author | jwe |
---|---|
date | Fri, 19 Aug 1994 14:34:25 +0000 |
parents | aecbe369233b |
children | 985a9c61f137 |
files | src/pt-const.cc src/pt-plot.cc |
diffstat | 2 files changed, 5 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-const.cc +++ b/src/pt-const.cc @@ -115,25 +115,6 @@ error ("%s: wrong type argument `%s'", name, tc.type_as_string ()); } -char * -tree_constant::type_as_string (void) const -{ - if (is_real_scalar ()) - return "real scalar"; - else if (is_real_matrix ()) - return "real matrix"; - else if (is_complex_scalar ()) - return "complex scalar"; - else if (is_complex_matrix ()) - return "complex matrix"; - else if (is_string ()) - return "string"; - else if (is_range ()) - return "range"; - else - return "<unknown type>"; -} - /* ;;; Local Variables: *** ;;; mode: C++ ***
--- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -396,7 +396,7 @@ } else { - double lo = lower_val.to_scalar (); + double lo = lower_val.double_value (); plot_buf << lo; } } @@ -413,7 +413,7 @@ } else { - double hi = upper_val.to_scalar (); + double hi = upper_val.double_value (); plot_buf << hi; } } @@ -501,7 +501,7 @@ double val; if (tmp.is_defined ()) { - val = tmp.to_scalar (); + val = tmp.double_value (); if (i == 0) plot_buf << " using "; else @@ -592,7 +592,7 @@ tree_constant tmp = linetype->eval (0); if (! error_state && tmp.is_defined ()) { - double val = tmp.to_scalar (); + double val = tmp.double_value (); plot_buf << " " << NINT (val); } else @@ -607,7 +607,7 @@ tree_constant tmp = pointtype->eval (0); if (! error_state && tmp.is_defined ()) { - double val = tmp.to_scalar (); + double val = tmp.double_value (); plot_buf << " " << NINT (val); } else