Mercurial > hg > octave-shane
changeset 11332:4d0cfbe59fd2
Allow logical indices for 'explode' variable in pie charts.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Thu, 09 Dec 2010 10:43:41 -0800 |
parents | 874f2a0fdd19 |
children | 492e7b587352 |
files | scripts/ChangeLog scripts/plot/private/__pie__.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-09 Rik <octave@nomad.inbox5.com> + + * plot/private/__pie__.m: Allow logical indices for 'explode' variable. + 2010-12-09 Kai Habel <kai.habel@gmx.de> * plot/pie3.m, plot/private/__pie__.m: New functions.
--- a/scripts/plot/private/__pie__.m +++ b/scripts/plot/private/__pie__.m @@ -45,7 +45,7 @@ if (numel (x) != numel (labels)) error ("__pie__: mismatch in number of labels and data"); endif - elseif (isnumeric (arg)) + elseif (! ischar (arg)) explode = arg; have_explode = true; if (! size_equal (x, explode))