comparison scripts/plot/appearance/legend.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 83792dd9bcc1
children 71bd638e0ef6
comparison
equal deleted inserted replaced
20320:6db2ea5556a4 20321:42b7d7758c4a
584 hlegend = axes ("tag", "legend", "userdata", struct ("handle", ud), 584 hlegend = axes ("tag", "legend", "userdata", struct ("handle", ud),
585 "box", box, 585 "box", box,
586 "xtick", [], "ytick", [], 586 "xtick", [], "ytick", [],
587 "xlim", [0, 1], "ylim", [0, 1], 587 "xlim", [0, 1], "ylim", [0, 1],
588 "visible", ifelse (strcmp (box, "on"), "on", "off"), 588 "visible", ifelse (strcmp (box, "on"), "on", "off"),
589 "activepositionproperty", "position", 589 "activepositionproperty", "position");
590 "interpreter", "tex");
591 ## Inherit properties from current axis 590 ## Inherit properties from current axis
592 ## "fontunits" shoud be first because it affects interpretation 591 ## "fontunits" shoud be first because it affects interpretation
593 ## of "fontsize" property 592 ## of "fontsize" property
594 proplist = {"fontunits", "fontangle", "fontname", "fontsize", ... 593 proplist = {"fontunits", "fontangle", "fontname", "fontsize", ...
595 "fontweight"}; 594 "fontweight"};
611 "northwestoutside", "southwestoutside"}; 610 "northwestoutside", "southwestoutside"};
612 addproperty ("location", hlegend, "radio", strjoin (locations, "|")); 611 addproperty ("location", hlegend, "radio", strjoin (locations, "|"));
613 addproperty ("orientation", hlegend, "radio", 612 addproperty ("orientation", hlegend, "radio",
614 "{vertical}|horizontal"); 613 "{vertical}|horizontal");
615 addproperty ("string", hlegend, "any", text_strings); 614 addproperty ("string", hlegend, "any", text_strings);
615 addproperty ("interpreter", hlegend, "textinterpreter");
616 addproperty ("textposition", hlegend, "radio", "left|{right}"); 616 addproperty ("textposition", hlegend, "radio", "left|{right}");
617 endif 617 endif
618 ## Inherit visual properties from legend object 618 ## Inherit visual properties from legend object
619 fontunits = get (hlegend, "fontunits"); 619 fontunits = get (hlegend, "fontunits");
620 fontangle = get (hlegend, "fontangle"); 620 fontangle = get (hlegend, "fontangle");