Mercurial > hg > octave-nkf
diff src/graphics.cc @ 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 | 2abbc8036f6a |
children | beaf723a49eb |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -2269,11 +2269,6 @@ cameraviewanglemode = "auto"; plotboxaspectratio = Matrix (1, 3, 1.0); drawmode = "normal"; - fontangle = "normal"; - fontname = "Helvetica"; - fontsize = 12; - fontunits = "points"; - fontweight = "normal"; gridlinestyle = ":"; linestyleorder = "-"; linewidth = 0.5; @@ -2297,20 +2292,24 @@ visible = "on"; nextplot = "replace"; - // FIXME -- this is not quite right; we should preserve - // "position" and "units". - if (mode != "replace") { + fontangle = "normal"; + fontname = "Helvetica"; + fontsize = 12; + fontunits = "points"; + fontweight = "normal"; + Matrix touterposition (1, 4, 0.0); touterposition(2) = 1; touterposition(3) = 1; outerposition = touterposition; position = default_axes_position (); + + activepositionproperty = "outerposition"; } - activepositionproperty = "outerposition"; delete_children ();