changeset 771:e16a175a8bb5

[project @ 1994-10-05 21:59:29 by jwe]
author jwe
date Wed, 05 Oct 1994 22:00:54 +0000
parents e666a6ab8f83
children 05cd8c8b13b3
files src/pt-plot.cc
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-plot.cc	Wed Oct 05 21:49:56 1994 +0000
+++ b/src/pt-plot.cc	Wed Oct 05 22:00:54 1994 +0000
@@ -225,8 +225,8 @@
       }
       break;
     default:
-      panic_impossible ();
-      break;
+      gripe_2_or_3_dim_plot ();
+      return;
     }
 
   if (range)
@@ -245,7 +245,7 @@
     {
       int status = plot_list->print (ndim, plot_buf);
 
-      if (status < 0)
+      if (error_state || status < 0)
 	return;
     }
 
@@ -289,7 +289,7 @@
       os << "gsplot";
       break;
     default:
-      panic_impossible ();
+      os << "<unkown plot command>";
       break;
     }
 
@@ -691,7 +691,7 @@
 	      file = save_in_tmp_file (data, ndim, parametric_plot);
 	      break;
 	    default:
-	      panic_impossible ();
+	      gripe_2_or_3_dim_plot ();
 	      break;
 	    }
 
@@ -821,7 +821,7 @@
 	      save_three_d (file, t, parametric);
 	      break;
 	    default:
-	      panic_impossible ();
+	      gripe_2_or_3_dim_plot ();
 	      break;
 	    }
 	}