[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: |
Sun, 23 Oct 2005 21:02:37 -0400 |
Index: pspp/src/plot-hist.c
diff -u pspp/src/plot-hist.c:1.6 pspp/src/plot-hist.c:1.7
--- pspp/src/plot-hist.c:1.6 Sun Jul 31 21:42:46 2005
+++ pspp/src/plot-hist.c Mon Oct 24 01:02:34 2005
@@ -41,7 +41,7 @@
{
char buf[100];
if ( !ch )
- return ;
+ return ;
pl_savestate_r(ch->lp);
@@ -121,13 +121,21 @@
struct chart *ch;
- bins = gsl_histogram_bins(hist);
-
ch = chart_create();
chart_write_title(ch, _("HISTOGRAM"));
chart_write_ylabel(ch, _("Frequency"));
chart_write_xlabel(ch, factorname);
+
+ if ( ! hist ) /* If this happens, probably all values are SYSMIS */
+ {
+ chart_submit(ch);
+ return ;
+ }
+ else
+ {
+ bins = gsl_histogram_bins(hist);
+ }
chart_write_yscale(ch, 0, gsl_histogram_max_val(hist), 5);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/plot-hist.c,
John Darrington <=