+/*****************************************************************************
+** This is part of the CTSim program
+** Copyright (C) 1983-2000 Kevin Rosenberg
+**
+** $Id: ezplot.h,v 1.8 2000/06/20 17:54:51 kevin Exp $
+**
+** This program is free software; you can redistribute it and/or modify
+** it under the terms of the GNU General Public License (version 2) as
+** published by the Free Software Foundation.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+** GNU General Public License for more details.
+**
+** You should have received a copy of the GNU General Public License
+** along with this program; if not, write to the Free Software
+** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+******************************************************************************/
+
/*----------------------------------------------------------------------*/
/* EZPLOT */
/* */
#ifndef __H_EZPLOT
#define __H_EZPLOT
+
#include <stdio.h>
#include <stddef.h>
-#include "kstddef.h"
#include <ctype.h>
-#include "sgp.h"
#include <math.h>
-#include "kmath.h"
-#include "cio.h"
+#include "ctsupport.h"
+#include "sgp.h"
#define MAXLABEL 40 /* maximum length of axis label */
#define MAXTITLE 40 /* maximum length of a title */
};
#define XBUF_DEF 600
-#define YBUF_DEF XBUF_DEF * (72. / 120.) * 0.75
+#define YBUF_DEF 600
#define PRTMODE_DEF 1
/*----------------------------------------------------------------------*/
extern bool ezplot_firstcall; /* set to false on first call to EZSET or EZPLOT */
-/* axis.c */
-int axis_scale(double min, double max, int nint, double *minp, double *maxp, int *nintp);
-/* ezplot.c */
-int ezplot(double x[], double y[], int num);
+/* ezplot.cpp */
+SGP_ID ezplot(float x[], double y[], int num);
+SGP_ID ezplot(double x[], double y[], int num);
void ezinit(void);
void ezfree(void);
void ezclear(void);
-/* ezplot1d.c */
-void ezplot_1d(double *y, int n);
-/* ezset.c */
+
+/* ezset.cpp */
int ezset(char *command);
-/* makefmt.c */
+
+/* ezplot1d.cpp */
+void ezplot_1d(double *y, int n);
+
+/* makefmt.cpp */
void make_numfmt(char *fmtstr, int *fldwid, int *nfrac, double min, double max, int nint);
+/* axis.cpp */
+int axis_scale (double min, double max, int nint, double *minp, double *maxp, int *nintp);
+
+
+
#endif