Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
8227:586b02ac671e | 8228:53dbbd331498 |
---|---|
2267 cameratargetmode = "auto"; | 2267 cameratargetmode = "auto"; |
2268 cameraupvectormode = "auto"; | 2268 cameraupvectormode = "auto"; |
2269 cameraviewanglemode = "auto"; | 2269 cameraviewanglemode = "auto"; |
2270 plotboxaspectratio = Matrix (1, 3, 1.0); | 2270 plotboxaspectratio = Matrix (1, 3, 1.0); |
2271 drawmode = "normal"; | 2271 drawmode = "normal"; |
2272 fontangle = "normal"; | |
2273 fontname = "Helvetica"; | |
2274 fontsize = 12; | |
2275 fontunits = "points"; | |
2276 fontweight = "normal"; | |
2277 gridlinestyle = ":"; | 2272 gridlinestyle = ":"; |
2278 linestyleorder = "-"; | 2273 linestyleorder = "-"; |
2279 linewidth = 0.5; | 2274 linewidth = 0.5; |
2280 minorgridlinestyle = ":"; | 2275 minorgridlinestyle = ":"; |
2281 // Note: plotboxaspectratio will be set through update_aspectratiors | 2276 // Note: plotboxaspectratio will be set through update_aspectratiors |
2295 view = tview; | 2290 view = tview; |
2296 | 2291 |
2297 visible = "on"; | 2292 visible = "on"; |
2298 nextplot = "replace"; | 2293 nextplot = "replace"; |
2299 | 2294 |
2300 // FIXME -- this is not quite right; we should preserve | |
2301 // "position" and "units". | |
2302 | |
2303 if (mode != "replace") | 2295 if (mode != "replace") |
2304 { | 2296 { |
2297 fontangle = "normal"; | |
2298 fontname = "Helvetica"; | |
2299 fontsize = 12; | |
2300 fontunits = "points"; | |
2301 fontweight = "normal"; | |
2302 | |
2305 Matrix touterposition (1, 4, 0.0); | 2303 Matrix touterposition (1, 4, 0.0); |
2306 touterposition(2) = 1; | 2304 touterposition(2) = 1; |
2307 touterposition(3) = 1; | 2305 touterposition(3) = 1; |
2308 outerposition = touterposition; | 2306 outerposition = touterposition; |
2309 | 2307 |
2310 position = default_axes_position (); | 2308 position = default_axes_position (); |
2311 } | 2309 |
2312 | 2310 activepositionproperty = "outerposition"; |
2313 activepositionproperty = "outerposition"; | 2311 } |
2312 | |
2314 | 2313 |
2315 delete_children (); | 2314 delete_children (); |
2316 | 2315 |
2317 children = Matrix (); | 2316 children = Matrix (); |
2318 | 2317 |