X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fnp-plot-cairo.c;h=334284ba8f857c20db90cb1ff561051a9ec9793d;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=a9186527b81d442954d03e9c735181806b05ade2;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp-builds.git diff --git a/src/output/charts/np-plot-cairo.c b/src/output/charts/np-plot-cairo.c index a9186527..334284ba 100644 --- a/src/output/charts/np-plot-cairo.c +++ b/src/output/charts/np-plot-cairo.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,12 +16,12 @@ #include -#include +#include "output/charts/np-plot.h" -#include -#include -#include -#include +#include "data/case.h" +#include "data/casereader.h" +#include "math/np.h" +#include "output/cairo-chart.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -34,7 +34,7 @@ np_plot_chart_draw (const struct chart_item *chart_item, cairo_t *cr, 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, @@ -61,8 +61,7 @@ dnp_plot_chart_draw (const struct chart_item *chart_item, cairo_t *cr, 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);