diff scripts/plot/pie.m @ 8867:ff89a265592b

pie.m: fix arg size comparison
author John W. Eaton <jwe@octave.org>
date Wed, 25 Feb 2009 02:44:24 -0500
parents b93ac0586e4b
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/plot/pie.m
+++ b/scripts/plot/pie.m
@@ -85,7 +85,7 @@
     if (iscell (arg))
       labels = arg;
       have_labels = true;
-      if (! size_equal (x, labels))
+      if (numel (x) != numel (labels))
 	error ("pie: mismatch in number of labels and data");
       endif
     elseif (isnumeric (arg))