Mercurial > hg > octave-lyh
diff src/gl-render.cc @ 13216:434e227b100b
Improvements to plotyy.
* scripts/plot/plotyy.m: Don't use "tag" or "userdata" manage plotyy axes.
* scripts/plot/legend.m: Ditto.
* scripts/plot/private/__go_draw_axes__.m: Ditto.
* src/gl-render.cc: Ditto.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 25 Sep 2011 13:48:09 -0400 |
parents | e81ddf9cacd5 |
children | cf5ebc0e47e4 |
line wrap: on
line diff
--- a/src/gl-render.cc +++ b/src/gl-render.cc @@ -849,7 +849,7 @@ double ypTickN = props.get_ypTickN (); double zpTickN = props.get_zpTickN (); - bool plotyy = (props.get_tag () == "plotyy"); + bool plotyy = (props.has_property ("__plotyy_axes__")); // Axes box @@ -1074,7 +1074,7 @@ int wmax = 0, hmax = 0; bool tick_along_z = nearhoriz || xisinf (fx); bool mirror = props.is_box () && ystate != AXE_ANY_DIR - && (props.get_tag () != "plotyy"); + && (! props.has_property ("__plotyy_axes__")); set_color (props.get_ycolor_rgb ());