Mercurial > hg > octave-nkf
comparison src/pt-plot.cc @ 771:e16a175a8bb5
[project @ 1994-10-05 21:59:29 by jwe]
author | jwe |
---|---|
date | Wed, 05 Oct 1994 22:00:54 +0000 |
parents | 7455048010b9 |
children | a2f9d3fd720c |
comparison
equal
deleted
inserted
replaced
770:e666a6ab8f83 | 771:e16a175a8bb5 |
---|---|
223 plot_line_count = 0; | 223 plot_line_count = 0; |
224 plot_buf << "splot"; | 224 plot_buf << "splot"; |
225 } | 225 } |
226 break; | 226 break; |
227 default: | 227 default: |
228 panic_impossible (); | 228 gripe_2_or_3_dim_plot (); |
229 break; | 229 return; |
230 } | 230 } |
231 | 231 |
232 if (range) | 232 if (range) |
233 { | 233 { |
234 if (plot_line_count == 0) | 234 if (plot_line_count == 0) |
243 | 243 |
244 if (plot_list) | 244 if (plot_list) |
245 { | 245 { |
246 int status = plot_list->print (ndim, plot_buf); | 246 int status = plot_list->print (ndim, plot_buf); |
247 | 247 |
248 if (status < 0) | 248 if (error_state || status < 0) |
249 return; | 249 return; |
250 } | 250 } |
251 | 251 |
252 plot_buf << "\n" << ends; | 252 plot_buf << "\n" << ends; |
253 | 253 |
287 break; | 287 break; |
288 case 3: | 288 case 3: |
289 os << "gsplot"; | 289 os << "gsplot"; |
290 break; | 290 break; |
291 default: | 291 default: |
292 panic_impossible (); | 292 os << "<unkown plot command>"; |
293 break; | 293 break; |
294 } | 294 } |
295 | 295 |
296 if (range) | 296 if (range) |
297 range->print_code (os); | 297 range->print_code (os); |
689 break; | 689 break; |
690 case 3: | 690 case 3: |
691 file = save_in_tmp_file (data, ndim, parametric_plot); | 691 file = save_in_tmp_file (data, ndim, parametric_plot); |
692 break; | 692 break; |
693 default: | 693 default: |
694 panic_impossible (); | 694 gripe_2_or_3_dim_plot (); |
695 break; | 695 break; |
696 } | 696 } |
697 | 697 |
698 if (file) | 698 if (file) |
699 { | 699 { |
819 break; | 819 break; |
820 case 3: | 820 case 3: |
821 save_three_d (file, t, parametric); | 821 save_three_d (file, t, parametric); |
822 break; | 822 break; |
823 default: | 823 default: |
824 panic_impossible (); | 824 gripe_2_or_3_dim_plot (); |
825 break; | 825 break; |
826 } | 826 } |
827 } | 827 } |
828 else | 828 else |
829 { | 829 { |