Mercurial > hg > octave-lyh
diff src/graphics.cc @ 8557:ab82e19002c4
better compatibility for axis label properties
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 21 Jan 2009 14:30:41 -0500 |
parents | 8ba2ee57c594 |
children | 5cc594679cdc |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -2208,6 +2208,7 @@ tightinset.add_constraint (dim_vector (1, 4)); x_zlim.resize (1, 2); + sx = "linear"; sy = "linear"; sz = "linear"; @@ -2215,13 +2216,22 @@ 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 ()); }