projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r131: *** empty log message ***
[ctsim.git]
/
libctgraphics
/
ezplot.cpp
diff --git
a/libctgraphics/ezplot.cpp
b/libctgraphics/ezplot.cpp
index dfd0baf900807c4f76cf798ddd2d1b0203bd3058..666f7593d0e9562aa0eb527483c13b0f05fafacd 100644
(file)
--- a/
libctgraphics/ezplot.cpp
+++ b/
libctgraphics/ezplot.cpp
@@
-6,7
+6,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: ezplot.cpp,v 1.
2 2000/06/19 19:04:0
5 kevin Exp $
+** $Id: ezplot.cpp,v 1.
4 2000/07/04 18:33:3
5 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
**
** 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
@@
-99,8
+99,8
@@
static int y_fldwid, y_frac; /* in fraction of number, used for printf() */
static double xtl_wid, ytl_wid; /* length of ticks labels in NDC */
static double tl_height; /* height of tick labels in NDC */
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[
1
0]; /* format to print x tick labels */
-static char y_numfmt[
1
0]; /* format to print y tick labels */
+static char x_numfmt[
2
0]; /* format to print x tick labels */
+static char y_numfmt[
2
0]; /* format to print y tick labels */
/*----------------------------------------------------------------------
/*----------------------------------------------------------------------
@@
-123,6
+123,18
@@
static char y_numfmt[10]; /* 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)
{
SGP_ID
ezplot (double x[], double y[], int num)
{