projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented a dialog box for the ROC command
[pspp-builds.git]
/
src
/
output
/
charts
/
plot-chart.h
diff --git
a/src/output/charts/plot-chart.h
b/src/output/charts/plot-chart.h
index 5cee5a9a245f82a87f66769729c37385fd4d5169..cfbaa4df8ddc396ee4d2338dee87acfd349bf0a5 100644
(file)
--- a/
src/output/charts/plot-chart.h
+++ b/
src/output/charts/plot-chart.h
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004
, 2009
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
@@
-14,7
+14,6
@@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include <config.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
@@
-27,6
+26,7
@@
#include <math/chart-geometry.h>
#include <output/chart.h>
#include <math/chart-geometry.h>
#include <output/chart.h>
+#include <libpspp/compiler.h>
#include <libpspp/str.h>
#include <output/manager.h>
#include <output/output.h>
#include <libpspp/str.h>
#include <output/manager.h>
#include <output/output.h>
@@
-36,13
+36,14
@@
#ifndef PLOT_CHART_H
#define PLOT_CHART_H
#ifndef PLOT_CHART_H
#define PLOT_CHART_H
-
+#define N_CHART_COLOURS 9
extern const char *const data_colour[];
extern const char *const data_colour[];
-enum tick_orientation {
- TICK_ABSCISSA=0,
- TICK_ORDINATE
-};
+enum tick_orientation
+ {
+ TICK_ABSCISSA=0,
+ TICK_ORDINATE
+ };
/* Draw a tick mark at position
/* Draw a tick mark at position
@@
-51,11
+52,13
@@
enum tick_orientation {
void draw_tick(struct chart *chart,
enum tick_orientation orientation,
double position,
void draw_tick(struct chart *chart,
enum tick_orientation orientation,
double position,
- const char *label, ...);
+ const char *label, ...)
+ PRINTF_FORMAT (4, 5);
/* Write the title on a chart*/
/* Write the title on a chart*/
-void chart_write_title(struct chart *chart, const char *title, ...);
+void chart_write_title(struct chart *chart, const char *title, ...)
+ PRINTF_FORMAT (2, 3);
/* Set the scale for the abscissa */
/* Set the scale for the abscissa */
@@
-70,4
+73,6
@@
void chart_write_xlabel(struct chart *ch, const char *label) ;
/* Write the ordinate label */
void chart_write_ylabel(struct chart *ch, const char *label);
/* Write the ordinate label */
void chart_write_ylabel(struct chart *ch, const char *label);
+void chart_write_legend (struct chart *ch);
+
#endif
#endif