comparison libinterp/corefcn/graphics.in.h @ 19044:4c59f69fa52c

figure: define adopted axes "currentaxes" if none is defined (bug #41573) * graphics.in.h (figure::properties::adopt): declare new custom method * graphics.cc (figure::properties::adopt): when adopting an axes, define it as currentaxes if none is already defined * graphics.cc: add %! test for currentaxes update
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sat, 23 Aug 2014 16:12:03 +0200
parents 9609f345823e
children 1288a2f27769
comparison
equal deleted inserted replaced
19041:0976f9fccbbd 19044:4c59f69fa52c
3303 } 3303 }
3304 else 3304 else
3305 error ("set___graphics_toolkit__ must be a string"); 3305 error ("set___graphics_toolkit__ must be a string");
3306 } 3306 }
3307 } 3307 }
3308
3309 void adopt (const graphics_handle& h);
3308 3310
3309 void set_position (const octave_value& val, 3311 void set_position (const octave_value& val,
3310 bool do_notify_toolkit = true); 3312 bool do_notify_toolkit = true);
3311 3313
3312 void set_outerposition (const octave_value& val, 3314 void set_outerposition (const octave_value& val,