Mercurial > hg > octave-nkf
diff scripts/plot/hidden.m @ 17174: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 | eaab03308c0b |
children | bc924baa2c4e |
line wrap: on
line diff
--- a/scripts/plot/hidden.m +++ b/scripts/plot/hidden.m @@ -56,18 +56,18 @@ if ((! ischar (fc) && is_white (fc)) || (ischar (fc) && strcmp (fc, "none"))) switch (mode) - case "on" - set (h, "facecolor", "w"); - case "off" - set (h, "facecolor", "none"); - case "toggle" - if (ischar (fc)) + case "on" set (h, "facecolor", "w"); - mode = "on"; - else + case "off" set (h, "facecolor", "none"); - mode = "off"; - endif + case "toggle" + if (ischar (fc)) + set (h, "facecolor", "w"); + mode = "on"; + else + set (h, "facecolor", "none"); + mode = "off"; + endif endswitch endif endif