Mercurial > hg > octave-lyh
diff scripts/plot/newplot.m @ 8228:53dbbd331498
Preserve font and position properties when axes are replace in the handle code
author | David Bateman <dbateman@free.fr> |
---|---|
date | Thu, 16 Oct 2008 14:49:08 +0100 |
parents | 4e05ba66ead2 |
children | b12a2975bf7e |
line wrap: on
line diff
--- a/scripts/plot/newplot.m +++ b/scripts/plot/newplot.m @@ -44,17 +44,7 @@ case "add" case "replacechildren" case "replace" - ## Preserve certain axes properties - fontprops = {"fontangle", get(ca, "fontangle"), ... - "fontname", get(ca, "fontname"), ... - "fontsize", get(ca, "fontsize"), ... - "fontunits", get(ca, "fontunits"), ... - "fontweight", get(ca, "fontweight"), ... - "position", get(ca, "position"), ... - "outerposition", get(ca, "outerposition"), ... - "activepositionproperty", get(ca, "activepositionproperty")}; __go_axes_init__ (ca, "replace"); - set (ca, fontprops{:}); __request_drawnow__ (); otherwise error ("newplot: unrecognized nextplot property for current axes");