struct casereader *data;
struct ccase *c;
- xrchart_write_title (cr, geom, _("Normal Q-Q Plot of %s"), npp->label);
+ xrchart_write_title (cr, geom, _("Normal Q-Q Plot of %s"), chart_item->title);
xrchart_write_xlabel (cr, geom, _("Observed Value"));
xrchart_write_ylabel (cr, geom, _("Expected Normal"));
xrchart_write_xscale (cr, geom,
struct casereader *data;
struct ccase *c;
- xrchart_write_title (cr, geom, _("Detrended Normal Q-Q Plot of %s"),
- dnpp->label);
+ xrchart_write_title (cr, geom, _("Detrended Normal Q-Q Plot of %s"), chart_item->title);
xrchart_write_xlabel (cr, geom, _("Observed Value"));
xrchart_write_ylabel (cr, geom, _("Dev from Normal"));
xrchart_write_xscale (cr, geom, dnpp->y_min, dnpp->y_max, 5);
if (np->n < 1.0)
return NULL;
- npp = xmalloc (sizeof *npp);
+ npp = xzalloc (sizeof *npp);
chart_item_init (&npp->chart_item, &np_plot_chart_class, label);
npp->data = casereader_clone (reader);
npp->y_min = np->y_min;
{
struct np_plot_chart *npp = to_np_plot_chart (chart_item);
casereader_destroy (npp->data);
- free (npp->label);
free (npp);
}