Mercurial > octave-nkf
changeset 18860:87c3848cf3c0
Fix bug when hggroup used with primitive graphic object (bug #42532).
* image.m, text.m, line.m, patch.m: __plt_get_axis_arg__ will return axis and
hggroup when 'parent' property is used. Select the first returned object
which is the axes, rather than passing both axis and hggroup to further plot
subroutines.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 10 Jun 2014 14:03:09 -0700 |
parents | 096b1a159d1f |
children | 4ae67c0553ae |
files | scripts/image/image.m scripts/plot/appearance/text.m scripts/plot/draw/line.m scripts/plot/draw/patch.m |
diffstat | 4 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/image/image.m Tue Jun 10 09:08:33 2014 -0700 +++ b/scripts/image/image.m Tue Jun 10 14:03:09 2014 -0700 @@ -111,6 +111,8 @@ hax = newplot (hax); elseif (isempty (hax)) hax = gca (); + else + hax = hax(1); endif htmp = __img__ (hax, do_new, x, y, img, varargin{chararg:end});
--- a/scripts/plot/appearance/text.m Tue Jun 10 09:08:33 2014 -0700 +++ b/scripts/plot/appearance/text.m Tue Jun 10 14:03:09 2014 -0700 @@ -129,6 +129,8 @@ if (isempty (hax)) hax = gca (); + else + hax = hax(1); endif ## Position argument may alse be in PROP/VAL pair