pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/box-whisker.c


From: John Darrington
Subject: [Pspp-cvs] Changes to pspp/src/box-whisker.c
Date: Sat, 07 May 2005 20:13:20 -0400

Index: pspp/src/box-whisker.c
diff -u pspp/src/box-whisker.c:1.5 pspp/src/box-whisker.c:1.6
--- pspp/src/box-whisker.c:1.5  Fri Apr 29 01:02:13 2005
+++ pspp/src/box-whisker.c      Sun May  8 00:13:19 2005
@@ -80,9 +80,6 @@
   double whisker[2];
   int i;
 
-  assert(m);
-
-
   const double *hinge = m->hinge;
   struct weighted_value **wvp = m->wvp;
   const int n_data = m->n_data;
@@ -102,6 +99,8 @@
   const double box_top = 
     ch->data_bottom + ( hinge[2] - ch->y_min ) * ch->ordinate_scale;
 
+  assert(m);
+
   /* Can't really draw a boxplot if there's no data */
   if ( n_data == 0 ) 
          return ;
@@ -119,7 +118,7 @@
     
     }
     
-  
+  {
   const double bottom_whisker = 
     ch->data_bottom + ( whisker[0] - ch->y_min ) * ch->ordinate_scale;
 
@@ -181,6 +180,7 @@
   pl_fline_r(ch->lp, 
             box_centre, top_whisker,
             box_centre, box_top);
+  }
 
   /* Draw outliers */
   for ( i = 0 ; i < n_data ; ++i ) 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]