projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zip-writer: Add functions for writing a member over multiple calls.
[pspp]
/
src
/
output
/
charts
/
roc-chart-cairo.c
diff --git
a/src/output/charts/roc-chart-cairo.c
b/src/output/charts/roc-chart-cairo.c
index b5c22aca5329a8e3a1af7c0449f2d8a323c1a92c..ae2db62efbd6f7acd4482be82323d70bc093e154 100644
(file)
--- a/
src/output/charts/roc-chart-cairo.c
+++ b/
src/output/charts/roc-chart-cairo.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* 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
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 <config.h>
#include <config.h>
-#include
<output/charts/roc-chart.h>
+#include
"output/charts/roc-chart.h"
-#include
<data/case.h>
-#include
<data/casereader.h>
-#include
<language/stats/roc.h>
-#include
<output/cairo-chart.h>
+#include
"data/case.h"
+#include
"data/casereader.h"
+#include
"language/stats/roc.h"
+#include
"output/cairo-chart.h"
#include "gettext.h"
#define _(msgid) gettext (msgid)
#include "gettext.h"
#define _(msgid) gettext (msgid)
@@
-37,10
+37,12
@@
xrchart_draw_roc (const struct chart_item *chart_item, cairo_t *cr,
xrchart_write_xlabel (cr, geom, _("1 - Specificity"));
xrchart_write_ylabel (cr, geom, _("Sensitivity"));
xrchart_write_xlabel (cr, geom, _("1 - Specificity"));
xrchart_write_ylabel (cr, geom, _("Sensitivity"));
- xrchart_write_xscale (cr, geom, 0, 1, 5);
- xrchart_write_yscale (cr, geom, 0, 1, 5);
+ if (! xrchart_write_xscale (cr, geom, 0, 1))
+ return;
+ if (! xrchart_write_yscale (cr, geom, 0, 1))
+ return;
- if (
rc->reference
)
+ if (
rc->reference
)
{
xrchart_line (cr, geom, 1.0, 0,
0.0, 1.0,
{
xrchart_line (cr, geom, 1.0, 0,
0.0, 1.0,