Mercurial > octave-nkf
diff src/pt-plot.cc @ 777:a2f9d3fd720c
[project @ 1994-10-07 14:01:53 by jwe]
author | jwe |
---|---|
date | Fri, 07 Oct 1994 14:13:44 +0000 |
parents | e16a175a8bb5 |
children | f02ec9f8de65 |
line wrap: on
line diff
--- a/src/pt-plot.cc Wed Oct 05 22:54:26 1994 +0000 +++ b/src/pt-plot.cc Fri Oct 07 14:13:44 1994 +0000 @@ -50,6 +50,7 @@ #include "load-save.h" #include "help.h" #include "error.h" +#include "gripes.h" #include "utils.h" #include "defun.h" @@ -209,6 +210,7 @@ else plot_buf << "replot"; break; + case 2: if (clear_before_plotting || plot_line_count == 0) { @@ -218,12 +220,14 @@ else plot_buf << "replot"; break; + case 3: { plot_line_count = 0; plot_buf << "splot"; } break; + default: gripe_2_or_3_dim_plot (); return; @@ -282,12 +286,15 @@ case 1: os << "replot"; break; + case 2: os << "gplot"; break; + case 3: os << "gsplot"; break; + default: os << "<unkown plot command>"; break; @@ -687,9 +694,11 @@ case 2: file = save_in_tmp_file (data, ndim); break; + case 3: file = save_in_tmp_file (data, ndim, parametric_plot); break; + default: gripe_2_or_3_dim_plot (); break; @@ -817,9 +826,11 @@ case 2: save_ascii_data (file, t); break; + case 3: save_three_d (file, t, parametric); break; + default: gripe_2_or_3_dim_plot (); break; @@ -884,6 +895,7 @@ case 1: clear_before_plotting = ! clear_before_plotting; break; + case 2: if (strcasecmp (argv[1], "on") == 0) clear_before_plotting = 0; @@ -892,6 +904,7 @@ else print_usage ("hold"); break; + default: print_usage ("hold"); break;