From: Matthew G. <mat...@us...> - 2007-10-02 13:03:37
|
Update of /cvsroot/jsbsimcommander/src/mattplot In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv3285/src/mattplot Modified Files: plot.cpp Log Message: bug fix for finding axis interval Index: plot.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/mattplot/plot.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** plot.cpp 28 Sep 2007 05:39:29 -0000 1.4 --- plot.cpp 2 Oct 2007 13:03:32 -0000 1.5 *************** *** 4772,4778 **** base /= 10; } ! double delta[] = {1, 2, 2.5, 5, 7.5, 10}; double tmin, tmax, tmark_interval; ! for (int i =0; delta[i] <= 10; ++i) { tmark_interval = base*delta[i]; --- 4772,4778 ---- base /= 10; } ! double delta[] = {1, 2, 2.5, 5, 7.5, 10, 12.5, 20, 25, 50}; double tmin, tmax, tmark_interval; ! for (int i =0; i < 10; ++i) { tmark_interval = base*delta[i]; *************** *** 4785,4789 **** } double smin, smax, smark_interval; ! for (int i =0; delta[i] <= 10; ++i) { smark_interval = base*delta[i]; --- 4785,4789 ---- } double smin, smax, smark_interval; ! for (int i =0; i < 10; ++i) { smark_interval = base*delta[i]; |