Mercurial > octave
changeset 23848:cbea10ff137e
Fix printing of polar axes accidentally lost in cset 784347c1b7e7 (bug #51697).
* polar.m: Set axes tag to "polaraxes".
* gl2ps-print.cc (draw_axes): Check axes tag for "polaraxes" and print these
objects even though visible attribute is "off".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 09 Aug 2017 09:39:19 -0700 |
parents | 0d5fc6e4a96c |
children | d139435d9193 |
files | libinterp/corefcn/gl2ps-print.cc scripts/plot/draw/polar.m |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-print.cc Wed Aug 09 11:24:54 2017 +0200 +++ b/libinterp/corefcn/gl2ps-print.cc Wed Aug 09 09:39:19 2017 -0700 @@ -96,7 +96,9 @@ void draw_axes (const axes::properties& props) { - if (! props.is_visible ()) + // FIXME: Until polar axes are first class axes, need to print + // the invisible polar axes. See bugs #51697, #51374. + if (! props.is_visible () && props.get_tag () != "polaraxes") return; // Initialize a sorting tree (viewport) in gl2ps for each axes
--- a/scripts/plot/draw/polar.m Wed Aug 09 11:24:54 2017 +0200 +++ b/scripts/plot/draw/polar.m Wed Aug 09 09:39:19 2017 -0700 @@ -99,7 +99,7 @@ hg = hggroup (hax, "tag", "polar_grid", "handlevisibility", "off"); set (hax, "visible", "off", "plotboxaspectratio", [1, 1, 1], - "zlim", [-1 1]); + "zlim", [-1 1], "tag", "polaraxes"); if (! isprop (hax, "rtick")) addproperty ("rtick", hax, "data");