# HG changeset patch # User Rik # Date 1291920221 28800 # Node ID 4d0cfbe59fd2b53e4947726faa70ad13a5e90d56 # Parent 874f2a0fdd1990eee5e5f8c2db8b3e666ac15b8c Allow logical indices for 'explode' variable in pie charts. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-12-09 Rik + + * plot/private/__pie__.m: Allow logical indices for 'explode' variable. + 2010-12-09 Kai Habel * plot/pie3.m, plot/private/__pie__.m: New functions. diff --git a/scripts/plot/private/__pie__.m b/scripts/plot/private/__pie__.m --- 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))