Mercurial > hg > octave-lyh
diff src/graphics.cc @ 8636:ee70d438a5b4
[mq]: grfx
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 29 Jan 2009 17:18:44 -0500 |
parents | b4fb0a52b15e |
children | f3579c1d6be9 |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -2550,19 +2550,27 @@ xlabel = gh_manager::make_graphics_handle ("text", __myhandle__, false); ylabel = gh_manager::make_graphics_handle ("text", __myhandle__, false); zlabel = gh_manager::make_graphics_handle ("text", __myhandle__, false); - title = gh_manager::make_graphics_handle ("text", __myhandle__, false); xset (xlabel.handle_value (), "handlevisibility", "off"); xset (ylabel.handle_value (), "handlevisibility", "off"); xset (zlabel.handle_value (), "handlevisibility", "off"); - xset (title.handle_value (), "handlevisibility", "off"); + xset (xlabel.handle_value (), "horizontalalignment", "center"); + xset (ylabel.handle_value (), "horizontalalignment", "center"); + xset (zlabel.handle_value (), "horizontalalignment", "right"); + xset (title.handle_value (), "horizontalalignment", "center"); + + xset (xlabel.handle_value (), "verticalalignment", "cap"); + xset (ylabel.handle_value (), "verticalalignment", "bottom"); + xset (title.handle_value (), "verticalalignment", "bottom"); + + xset (ylabel.handle_value (), "rotation", 90.0); + adopt (xlabel.handle_value ()); adopt (ylabel.handle_value ()); adopt (zlabel.handle_value ()); - adopt (title.handle_value ()); update_transform ();