On 2008-07-03 03:34-0700 Jerry wrote: > The third page of Ada example 29, x29a, compared to the C example, > x29c, on the third page, moves the major ticks one day later and adds > one day to the tick labels. For example, the first Ada tick label is > 2005-12-15 and the first C tick label is 2005-12-14. Both are correct > as far as the plot is concerned, just in different places. The first > Ada major tick is 14 days from the beginning of the x-axis and the > first C major tick is 13 days from the beginning. All other > increments between major ticks for both Ada and C are 14 days. I > tried to chase the problem down to a rounding error in the big number > that is the number of seconds since 1900 but that didn't turn > anything up. Other than the x-axis tick problem, everything else on > the page appears the same--the data points are the same. > > Has anyone else seen this?
My guess is you have some real to integer transformation going on with your Ada interface that is not equivalent to what is happening in C. In C, a cast from float to int discards the fractional part completely, i.e., it does not take the nearest integer. So, for example, 1.99999 is converted to 1. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
