[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/plot-hist.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/plot-hist.c |
Date: |
Wed, 13 Apr 2005 06:10:06 -0400 |
Index: pspp/src/plot-hist.c
diff -u pspp/src/plot-hist.c:1.2 pspp/src/plot-hist.c:1.3
--- pspp/src/plot-hist.c:1.2 Fri Jan 14 04:05:47 2005
+++ pspp/src/plot-hist.c Wed Apr 13 10:09:59 2005
@@ -39,6 +39,9 @@
histogram_write_legend(struct chart *ch, const struct normal_curve *norm)
{
char buf[100];
+ if ( !ch )
+ return ;
+
pl_savestate_r(ch->lp);
sprintf(buf,"N = %.2f",norm->N);
@@ -66,6 +69,8 @@
double lower;
double height;
+ if ( !ch )
+ return ;
const size_t bins = gsl_histogram_bins(hist);
const double x_pos = (ch->data_right - ch->data_left) * bar / (double) bins ;
const double width = (ch->data_right - ch->data_left) / (double) bins ;
- [Pspp-cvs] Changes to pspp/src/plot-hist.c,
John Darrington <=