diff libinterp/corefcn/graphics.cc @ 19631:db92e7e28e1f

strip trailing whitespace from most source files * NEWS, doc/interpreter/contributors.in, doc/interpreter/func.txi, doc/interpreter/genpropdoc.m, doc/interpreter/octave_logo.eps, doc/interpreter/plot.txi, doc/interpreter/stmt.txi, examples/data/Makefile.am, libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc, libinterp/corefcn/error.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/gl-render.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h, libinterp/corefcn/load-path.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/strfind.cc, libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h, libinterp/corefcn/urlwrite.cc, libinterp/corefcn/variables.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-classdef.h, libinterp/octave.cc, libinterp/parse-tree/lex.h, libinterp/parse-tree/oct-parse.in.yy, libinterp/parse-tree/pt-classdef.h, liboctave/system/file-ops.cc, liboctave/system/oct-env.cc, m4/acinclude.m4, scripts/deprecated/finite.m, scripts/deprecated/fmod.m, scripts/deprecated/fnmatch.m, scripts/deprecated/luinc.m, scripts/deprecated/octave_tmp_file_name.m, scripts/deprecated/syl.m, scripts/deprecated/usage.m, scripts/general/inputParser.m, scripts/general/interp1.m, scripts/general/interp2.m, scripts/general/interp3.m, scripts/general/isequal.m, scripts/general/private/__isequal__.m, scripts/geometry/voronoi.m, scripts/image/image.m, scripts/image/imshow.m, scripts/image/ind2rgb.m, scripts/linear-algebra/bandwidth.m, scripts/linear-algebra/isbanded.m, scripts/miscellaneous/bzip2.m, scripts/miscellaneous/cast.m, scripts/miscellaneous/copyfile.m, scripts/miscellaneous/delete.m, scripts/miscellaneous/fullfile.m, scripts/miscellaneous/getappdata.m, scripts/miscellaneous/gunzip.m, scripts/miscellaneous/isappdata.m, scripts/miscellaneous/ls.m, scripts/miscellaneous/mex.m, scripts/miscellaneous/movefile.m, scripts/miscellaneous/orderfields.m, scripts/miscellaneous/recycle.m, scripts/miscellaneous/rmappdata.m, scripts/miscellaneous/setfield.m, scripts/miscellaneous/symvar.m, scripts/miscellaneous/tar.m, scripts/miscellaneous/tmpnam.m, scripts/miscellaneous/unpack.m, scripts/miscellaneous/ver.m, scripts/miscellaneous/what.m, scripts/miscellaneous/xor.m, scripts/miscellaneous/zip.m, scripts/optimization/fminbnd.m, scripts/optimization/sqp.m, scripts/path/private/getsavepath.m, scripts/path/savepath.m, scripts/pkg/pkg.m, scripts/pkg/private/installed_packages.m, scripts/plot/draw/plotyy.m, scripts/plot/draw/polar.m, scripts/plot/draw/private/__quiver__.m, scripts/plot/draw/private/__scatter__.m, scripts/plot/draw/private/__stem__.m, scripts/plot/draw/surface.m, scripts/plot/draw/surfnorm.m, scripts/plot/util/copyobj.m, scripts/plot/util/hgload.m, scripts/plot/util/hgsave.m, scripts/plot/util/isprop.m, scripts/plot/util/linkprop.m, scripts/plot/util/private/__go_draw_axes__.m, scripts/set/setdiff.m, scripts/set/union.m, scripts/signal/periodogram.m, scripts/sparse/eigs.m, scripts/sparse/ilu.m, scripts/sparse/qmr.m, scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/specfun/beta.m, scripts/specfun/ellipke.m, scripts/specfun/isprime.m, scripts/statistics/base/lscov.m, scripts/testfun/__run_test_suite__.m, scripts/testfun/test.m: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:29:54 -0500
parents 0e1f5a750d00
children 408361a8c72f
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Tue Jan 20 10:24:46 2015 -0500
+++ b/libinterp/corefcn/graphics.cc	Tue Jan 20 10:29:54 2015 -0500
@@ -2773,7 +2773,7 @@
           pname.find ("__") != 0 && pname.find ("current") != 0 &&
           pname != "uicontextmenu" && pname != "parent")
         {
-          // Store *mode prop/val in order to set them last 
+          // Store *mode prop/val in order to set them last
           if (pname.find ("mode") == (pname.length () - 4))
             pval[pname] = it->second;
           else
@@ -2936,8 +2936,8 @@
               graphics_object old_parent_obj;
               old_parent_obj = gh_manager::get_object (get_parent ());
 
-               
-              if (old_parent_obj.get_handle () != hnp) 
+
+              if (old_parent_obj.get_handle () != hnp)
                 old_parent_obj.remove_child (__myhandle__);
               else
                 // Do nothing more
@@ -3134,15 +3134,15 @@
     }
 }
 
-void 
+void
 base_graphics_object::reset_default_properties (void)
   {
     if (valid_object ())
       {
-        property_list::pval_map_type factory_pval = 
+        property_list::pval_map_type factory_pval =
           gh_manager::get_object (0).get_factory_defaults_list ()
           .find (type ())->second;
-        
+
         xreset_default_properties (get_handle (), factory_pval);
 
         override_defaults (*this);
@@ -3352,7 +3352,7 @@
     {
       // Input checking and abrev. matching
       diary.set (val, false);
-      
+
       if (! error_state)
         {
           Fdiary (ovl (diary.current_value ()));
@@ -3375,7 +3375,7 @@
     {
       // Input checking and abrev. matching
       diaryfile.set (val, false);
-      
+
       if (! error_state)
         {
           Fdiary (ovl (diaryfile.string_value ()));
@@ -3402,7 +3402,7 @@
     {
       // Input checking and abrev. matching
       echo.set (val, false);
-      
+
       if (! error_state)
         {
           Fecho (ovl (echo.current_value ()));
@@ -3431,10 +3431,10 @@
     {
       // Input checking and abrev. matching
       format.set (val, false);
-      
+
       if (! error_state)
         {
-          Fformat (ovl (format.current_value ()));     
+          Fformat (ovl (format.current_value ()));
 
           format.run_listeners ();
         }
@@ -3458,7 +3458,7 @@
     {
       // Input checking and abrev. matching
       formatspacing.set (val, false);
-      
+
       if (! error_state)
         {
           std::string strval = formatspacing.current_value ();
@@ -3487,7 +3487,7 @@
     {
       // Input checking and abrev. matching
       recursionlimit.set (val, false);
-      
+
       if (! error_state)
         {
           double dval = recursionlimit.double_value ();
@@ -3639,7 +3639,7 @@
   // empty list of local defaults
   default_properties = property_list ();
 
-  xreset_default_properties (get_handle (), 
+  xreset_default_properties (get_handle (),
                              xproperties.factory_defaults ());
 }
 
@@ -3687,7 +3687,7 @@
     }
 }
 
-void 
+void
 figure::properties::adopt (const graphics_handle& h)
 {
   base_properties::adopt (h);
@@ -3829,7 +3829,7 @@
           position.run_listeners (POSTSET);
           mark_modified ();
         }
-      
+
       if (paperpositionmode.is ("auto"))
         paperposition.set (get_auto_paperposition ());
     }
@@ -4057,11 +4057,11 @@
 {
   Matrix pos = get_position ().matrix_value ();
   Matrix sz;
-  
+
   caseless_str funits = get_units ();
   caseless_str punits = get_paperunits ();
 
-  // Convert position from figure units to paperunits 
+  // Convert position from figure units to paperunits
   if (funits == "normalized" || punits == "normalized")
     {
       sz = screen_size_pixels ();
@@ -4090,13 +4090,13 @@
 %! in_pos = [0 0 4 5];
 %! tol = 20 * eps ();
 %! unwind_protect
-%!   ## paperpositionmode "auto" converts figure size to paper units 
+%!   ## paperpositionmode "auto" converts figure size to paper units
 %!   set (hf, "units", "inches");
 %!   set (hf, "position", in_pos);
 %!   set (hf, "paperunits", "centimeters");
 %!   psz = get (hf, "papersize");
 %!   fsz = in_pos(3:4) * 2.54;
-%!   pos = [(psz/2 .- fsz/2) fsz];  
+%!   pos = [(psz/2 .- fsz/2) fsz];
 %!   set (hf, "paperpositionmode", "auto");
 %!   assert (get (hf, "paperposition"), pos, tol)
 %! unwind_protect_cleanup
@@ -4108,13 +4108,13 @@
 %! in_pos = [0 0 4 5];
 %! tol = 20 * eps ();
 %! unwind_protect
-%!   ## likewise with normalized units 
+%!   ## likewise with normalized units
 %!   set (hf, "units", "inches");
 %!   set (hf, "position", in_pos);
 %!   psz = get (hf, "papersize");
 %!   set (hf, "paperunits", "normalized");
 %!   fsz = in_pos(3:4) ./ psz;
-%!   pos = [([0.5 0.5] .- fsz/2) fsz];  
+%!   pos = [([0.5 0.5] .- fsz/2) fsz];
 %!   assert (get (hf, "paperposition"), pos, tol)
 %! unwind_protect_cleanup
 %!   close (hf);
@@ -4125,13 +4125,13 @@
 %! in_pos = [0 0 4 5];
 %! tol = 20 * eps ();
 %! unwind_protect
-%!   ## changing papertype updates paperposition 
+%!   ## changing papertype updates paperposition
 %!   set (hf, "units", "inches");
 %!   set (hf, "position", in_pos);
 %!   set  (hf, "papertype", "a4");
 %!   psz = get (hf, "papersize");
 %!   fsz = in_pos(3:4);
-%!   pos = [(psz/2 .- fsz/2) fsz];  
+%!   pos = [(psz/2 .- fsz/2) fsz];
 %!   assert (get (hf, "paperposition"), pos, tol)
 %! unwind_protect_cleanup
 %!   close (hf);
@@ -4148,7 +4148,7 @@
 %!   set (hf, "paperorientation", "landscape");
 %!   psz = get (hf, "papersize");
 %!   fsz = in_pos(3:4);
-%!   pos = [(psz/2 .- fsz/2) fsz];  
+%!   pos = [(psz/2 .- fsz/2) fsz];
 %!   assert (get (hf, "paperposition"), pos, tol)
 %! unwind_protect_cleanup
 %!   close (hf);
@@ -4971,7 +4971,7 @@
       position = default_axes_position ();
       activepositionproperty = "outerposition";
     }
-  
+
   if (mode != "reset")
     {
       delete_children (true);
@@ -6879,7 +6879,7 @@
     }
 
   double tick_sep;
-  
+
   if (is_logscale)
     {
       if (! (xisinf (hi) || xisinf (lo)))
@@ -7132,7 +7132,7 @@
 axes::update_axis_limits (const std::string& axis_type,
                           const graphics_handle& h)
 {
-  if (updating_axis_limits.find (get_handle ().value ()) != 
+  if (updating_axis_limits.find (get_handle ().value ()) !=
       updating_axis_limits.end ())
     return;
 
@@ -7335,7 +7335,7 @@
 void
 axes::update_axis_limits (const std::string& axis_type)
 {
-  if ((updating_axis_limits.find (get_handle ().value ()) != 
+  if ((updating_axis_limits.find (get_handle ().value ()) !=
        updating_axis_limits.end ()) ||
       (updating_aspectratios.find (get_handle ().value ()) !=
        updating_aspectratios.end ()))
@@ -8009,7 +8009,7 @@
   NDArray cd = get_cdata ().array_value ();
 
   bad_data_msg = std::string ();
-  if (xd.dims () != yd.dims () || 
+  if (xd.dims () != yd.dims () ||
       (xd.dims () != zd.dims () && ! zd.is_empty ()))
     {
       bad_data_msg = "x/y/zdata should have the same dimensions";
@@ -8121,7 +8121,7 @@
             }
         }
     }
-  
+
   // Build cdata
   dim_vector dv = dim_vector::alloc (3);
   NDArray cd;
@@ -8134,7 +8134,7 @@
       dv(2) = fvc.columns ();
       cd = fvc.reshape (dv);
     }
-  else 
+  else
     {
       if (! fvc.is_empty ())
         {
@@ -8146,8 +8146,8 @@
         }
     }
 
-  // Build x,y,zdata and eventually per vertex cdata 
-  Matrix xd (idx.dims ()); 
+  // Build x,y,zdata and eventually per vertex cdata
+  Matrix xd (idx.dims ());
   Matrix yd (idx.dims ());
   Matrix zd;
   bool has_zd = false;
@@ -8157,7 +8157,7 @@
       has_zd = true;
     }
 
-  
+
   for (octave_idx_type jj = 0; jj < nfaces; jj++)
     {
       for (octave_idx_type ii = 0; ii < idx.rows (); ii++)
@@ -8168,7 +8168,7 @@
 
           if (has_zd)
             zd(ii,jj) = vert(row,2);
-          
+
           if (pervertex)
             for (int kk = 0; kk < fvc.columns (); kk++)
               cd(ii,jj,kk) = fvc(row,kk);
@@ -8829,7 +8829,7 @@
   // empty list of local defaults
   default_properties = property_list ();
 
-  xreset_default_properties (get_handle (), 
+  xreset_default_properties (get_handle (),
                              xproperties.factory_defaults ());
 
   // override with parents' defaults
@@ -9502,18 +9502,18 @@
 %! unwind_protect
 %!   tol = 20 * eps;
 %!   hax = axes ("defaultlinelinewidth", 3);
-%!   
+%!
 %!   hli = line (1:10, 1:10, 1:10, "marker", "o",
 %!               "markerfacecolor", "b", "linestyle", ":");
-%!   
+%!
 %!   reset (hli);
 %!   assert (get (hli, "marker"), get (0, "defaultlinemarker"));
-%!   assert (get (hli, "markerfacecolor"), 
+%!   assert (get (hli, "markerfacecolor"),
 %!           get (0, "defaultlinemarkerfacecolor"));
-%!   assert (get (hli, "linestyle"), 
+%!   assert (get (hli, "linestyle"),
 %!           get (0, "defaultlinelinestyle"));
-%!   assert (get (hli, "linewidth"), 3, tol);  # parent axes defaults  
-%!   
+%!   assert (get (hli, "linewidth"), 3, tol);  # parent axes defaults
+%!
 %! unwind_protect_cleanup
 %!   close (hf);
 %! end_unwind_protect
@@ -9560,7 +9560,7 @@
 %!test  # image object
 %! hf = figure ("visible", "off");
 %! unwind_protect
-%!   tol = 20 * eps;   
+%!   tol = 20 * eps;
 %!   him = image (rand (10,10), "cdatamapping", "scaled");
 %!
 %!   reset (him);
@@ -9574,7 +9574,7 @@
 %!test  # text object
 %! hf = figure ("visible", "off");
 %! unwind_protect
-%!   tol = 20 * eps;   
+%!   tol = 20 * eps;
 %!   hte = text (5, 5, "Hi!", "fontsize", 20 ,"color", "r");
 %!
 %!   reset (hte);
@@ -9585,14 +9585,14 @@
 %!   close (hf);
 %! end_unwind_protect
 
-%!test  # axes object  
+%!test  # axes object
 %! hf = figure ("visible", "off");
 %! unwind_protect
 %!   tol = 20 * eps;
 %!   pos = get (0, "defaultaxesposition") * .5;
 %!   hax = axes ("linewidth", 2, "position", pos);
 %!   title ("Reset me, please!");
-%! 
+%!
 %!   reset (hax);
 %!   assert (get (hax, "linewidth"), get (0, "defaultaxeslinewidth"), tol);
 %!   assert (get (hax, "position"), pos, tol); # axes position is unchanged
@@ -9604,7 +9604,7 @@
 
 %!test  # root figure object
 %! set (0, "defaultfigurevisible", "off");
-%! hf = figure ("visible", "off", "paperunits", "centimeters", 
+%! hf = figure ("visible", "off", "paperunits", "centimeters",
 %!              "papertype", "a4");
 %! unwind_protect
 %!   reset (hf);
@@ -9732,7 +9732,7 @@
                   else if (nargin == 2 && args(1).is_string ())
                     {
                       std::string property = args(1).string_value ();
-                      
+
                       octave_map pmap = obj.values_as_struct ();
 
                       if (obj.has_readonly_property (property))