comparison scripts/plot/__gnuplot_drawnow__.m @ 17182:c3c1ebfaa7dc

maint: Use common indentation for switch statement. * scripts/general/interp1.m, scripts/geometry/delaunay.m, scripts/help/__unimplemented__.m, scripts/image/cmunique.m, scripts/miscellaneous/edit.m, scripts/optimization/fzero.m, scripts/optimization/sqp.m, scripts/plot/__gnuplot_drawnow__.m, scripts/plot/hidden.m, scripts/plot/legend.m, scripts/plot/print.m, scripts/plot/printd.m, scripts/plot/private/__contour__.m, scripts/plot/private/__fltk_print__.m, scripts/plot/private/__gnuplot_print__.m, scripts/plot/private/__go_draw_axes__.m, scripts/plot/private/__print_parse_opts__.m, scripts/signal/periodogram.m, scripts/sparse/bicg.m, test/slice.tst, test/switch.tst: Use common indentation for switch statement.
author Rik <rik@octave.org>
date Sun, 04 Aug 2013 15:11:34 -0700
parents b672afbb7c3c
children 7babcdb9bc13
comparison
equal deleted inserted replaced
17181:3a23cbde59d5 17182:c3c1ebfaa7dc
207 size_str = sprintf ("size %.12g,%.12g", gnuplot_size); 207 size_str = sprintf ("size %.12g,%.12g", gnuplot_size);
208 case "tikz" 208 case "tikz"
209 size_str = sprintf ("size %gin,%gin", gnuplot_size); 209 size_str = sprintf ("size %gin,%gin", gnuplot_size);
210 case "dumb" 210 case "dumb"
211 new_stream = 1; 211 new_stream = 1;
212 if (! isempty (getenv ("COLUMNS")) && ! isempty (getenv ("LINES"))) 212 if (!isempty (getenv ("COLUMNS")) && !isempty (getenv ("LINES")))
213 ## Let dumb use full text screen size (minus prompt lines). 213 ## Let dumb use full text screen size (minus prompt lines).
214 n = sprintf ("%i", -2 - length (find (sprintf ("%s", PS1) == "\n"))); 214 n = sprintf ("%i", -2 - length (find (sprintf ("%s", PS1) == "\n")));
215 ## n = the number of times \n appears in PS1 215 ## n = the number of times \n appears in PS1
216 size_str = ["size ", getenv("COLUMNS"), ",", getenv("LINES"), n]; 216 size_str = ["size " getenv("COLUMNS") "," getenv("LINES") n];
217 else 217 else
218 ## Use the gnuplot default. 218 ## Use the gnuplot default.
219 size_str = ""; 219 size_str = "";
220 endif 220 endif
221 case {"aqua", "fig", "corel"} 221 case {"aqua", "fig", "corel"}