/*****************************************************************************
+** FILE IDENTIFICATION
+**
+** EZPLOT
+**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ezplot.cpp,v 1.1 2000/06/19 18:05:03 kevin Exp $
+** $Id: ezplot.cpp,v 1.4 2000/07/04 18:33:35 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
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
******************************************************************************/
-/*----------------------------------------------------------------------*/
-/* EZPLOT */
-/*----------------------------------------------------------------------*/
#include "ezplot.h"
#include "algo.h"
+
static int plot (SGP_ID *gid);
static void drawaxis(void);
static void symbol (int sym, double symwidth, double symheight);
-
/*-------------------------------------*/
/* GLOBAL variables for EZPLOT & EZSET */
/*-------------------------------------*/
static double xtl_wid, ytl_wid; /* length of ticks labels in NDC */
static double tl_height; /* height of tick labels in NDC */
-static char x_numfmt[10]; /* format to print x tick labels */
-static char y_numfmt[10]; /* format to print y tick labels */
+static char x_numfmt[20]; /* format to print x tick labels */
+static char y_numfmt[20]; /* format to print y tick labels */
/*----------------------------------------------------------------------
*----------------------------------------------------------------------*/
+SGP_ID
+ezplot (float x[], double y[], int num)
+{
+ double dx [num];
+
+ for (int i = 0; i < num; i++)
+ dx[i] = x[i];
+
+ ezplot (dx, y, num);
+}
+
+
SGP_ID
ezplot (double x[], double y[], int num)
{