From: <ai...@us...> - 2009-02-21 00:43:58
|
Revision: 9569 http://plplot.svn.sourceforge.net/plplot/?rev=9569&view=rev Author: airwin Date: 2009-02-21 00:43:48 +0000 (Sat, 21 Feb 2009) Log Message: ----------- Simplify plbox to use the new time API. Modified Paths: -------------- trunk/src/plbox.c Modified: trunk/src/plbox.c =================================================================== --- trunk/src/plbox.c 2009-02-21 00:32:28 UTC (rev 9568) +++ trunk/src/plbox.c 2009-02-21 00:43:48 UTC (rev 9569) @@ -1203,7 +1203,6 @@ PLFLT pos, tn, tp, offset, height; PLFLT factor, tstart; const char *timefmt; - double tm; double t; /* Set plot options from input */ @@ -1250,9 +1249,7 @@ tp = xtick1 * (1. + floor(vpwxmi / xtick1)); for (tn = tp; BETW(tn, vpwxmi, vpwxma); tn += xtick1) { if (ldx) { - t = (double) tn; - ctimeqsas(1970,0,1,0,0,t,&tm, plsc->qsasconfig); - strfqsas(string, STRING_LEN, timefmt, tm, plsc->qsasconfig); + strfqsas(string, STRING_LEN, timefmt, (double) tn, plsc->qsasconfig); } else { plform(tn, xscale, xprec, string, STRING_LEN, llx, lfx); @@ -1299,9 +1296,7 @@ tp = ytick1 * (1. + floor(vpwymi / ytick1)); for (tn = tp; BETW(tn, vpwymi, vpwyma); tn += ytick1) { if (ldy) { - t = (double) tn; - ctimeqsas(1970,0,1,0,0,t,&tm, plsc->qsasconfig); - strfqsas(string, STRING_LEN, timefmt, tm, plsc->qsasconfig); + strfqsas(string, STRING_LEN, timefmt, (double) tn, plsc->qsasconfig); } else { plform(tn, yscale, yprec, string, STRING_LEN, lly, lfy); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |