X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fezplot.cpp;h=81af0ddc30349216ac58719a8827b55baa48674d;hp=dfd0baf900807c4f76cf798ddd2d1b0203bd3058;hb=44ba9ce559d2d52cbd7bbea6bcd76242840fd3eb;hpb=595e63c804284d460ce4d032c3848b75bc57186d diff --git a/libctgraphics/ezplot.cpp b/libctgraphics/ezplot.cpp index dfd0baf..81af0dd 100644 --- 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 ** -** $Id: ezplot.cpp,v 1.2 2000/06/19 19:04:05 kevin Exp $ +** $Id: ezplot.cpp,v 1.3 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 @@ -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) {