comparison scripts/plot/util/cla.m @ 20321:42b7d7758c4a

Remove axes "interpreter" property (bug #45388) * graphics.in.h (axes::properties): remove interpreter property * genpropdoc.m: remove "interpreter" from the list of axes properties * legend.m: create legend axes specific "interpreter" property * polar.m: bind labels "interpreter" to the axes "ticklabelinterpreter" * cla.m: use "ticklabelinterpreter" in test * __go_draw_axes__.m: use "ticklabelinterpreter" property for axes objects
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 25 Jun 2015 00:22:32 +0200
parents 4197fc428c7d
children
comparison
equal deleted inserted replaced
20320:6db2ea5556a4 20321:42b7d7758c4a
90 %!test 90 %!test
91 %! hf = figure ("visible", "off"); 91 %! hf = figure ("visible", "off");
92 %! unwind_protect 92 %! unwind_protect
93 %! hax = gca; 93 %! hax = gca;
94 %! plot (hax, 1:10); 94 %! plot (hax, 1:10);
95 %! set (hax, "interpreter", "tex"); 95 %! set (hax, "ticklabelinterpreter", "none");
96 %! cla (hax); 96 %! cla (hax);
97 %! kids = get (hax, "children"); 97 %! kids = get (hax, "children");
98 %! assert (numel (kids), 0); 98 %! assert (numel (kids), 0);
99 %! assert (get (hax, "interpreter"), "tex"); 99 %! assert (get (hax, "ticklabelinterpreter"), "none");
100 %! plot (hax, 1:10); 100 %! plot (hax, 1:10);
101 %! cla (hax, "reset"); 101 %! cla (hax, "reset");
102 %! kids = get (hax, "children"); 102 %! kids = get (hax, "children");
103 %! assert (numel (kids), 0); 103 %! assert (numel (kids), 0);
104 %! assert (get (hax, "interpreter"), "none"); 104 %! assert (get (hax, "ticklabelinterpreter"), "tex");
105 %! unwind_protect_cleanup 105 %! unwind_protect_cleanup
106 %! close (hf); 106 %! close (hf);
107 %! end_unwind_protect 107 %! end_unwind_protect
108 108