static void
-show_scatterplot (const struct graph *cmd, const struct casereader *input)
+show_scatterplot (const struct graph *cmd, struct casereader *input)
{
struct string title;
struct scatterplot_chart *scatterplot;
}
static void
-show_histogr (const struct graph *cmd, const struct casereader *input)
+show_histogr (const struct graph *cmd, struct casereader *input)
{
struct histogram *histogram;
struct ccase *c;
- struct casereader *reader;
{
/* Sturges Rule */
run_graph (struct graph *cmd, struct casereader *input)
{
struct ccase *c;
- struct casereader *reader, *writer;
+ struct casereader *reader;
+ struct casewriter *writer;
cmd->es = pool_calloc (cmd->pool,cmd->n_dep_vars,sizeof(struct exploratory_stats));
for(int v=0;v<cmd->n_dep_vars;v++)
#include <gsl/gsl_cdf.h>
#include "data/casereader.h"
+#include "data/variable.h"
#include "libpspp/cast.h"
#include "output/chart-item-provider.h"
/* Creates a scatterplot */
struct scatterplot_chart *
-scatterplot_create (const struct casereader *reader,
+scatterplot_create (struct casereader *reader,
const char *xlabel,
const char *ylabel,
const struct variable *byvar,
{
struct chart_item chart_item;
struct casereader *data;
- const struct variable *byvar;
- const char *xlabel;
- const char *ylabel;
+ struct variable *byvar;
+ char *xlabel;
+ char *ylabel;
double y_min, y_max;
double x_min, x_max;
};
struct scatterplot_chart *
-scatterplot_create (const struct casereader *,
+scatterplot_create (struct casereader *,
const char *xlabel,
const char *ylabel,
const struct variable *,