From: Pedro V. <ped...@sp...> - 2016-12-23 06:16:17
|
> I think the above loop is the source of the trouble because > it assigns the same value to all elements of x. That is, > tinterval has to be multiplied by i. yes, that was it, thanks ----- Original Message ----- From: "Alan W. Irwin" <ir...@be...> To: "Pedro Vicente" <ped...@sp...> Cc: <plp...@li...> Sent: Monday, December 19, 2016 2:41 AM Subject: Re: [Plplot-general] plotting date time axis > On 2016-12-19 01:32-0500 Pedro Vicente wrote: > >> for (int idx_orb = 0; idx_orb < NSIZE; idx_orb++) >> { >> x[idx_orb] = tstart + tinterval; >> } > > I think the above loop is the source of the trouble because > it assigns the same value to all elements of x. That is, > tinterval has to be multiplied by i. > > 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); the Time > Ephemerides project (timeephem.sf.net); PLplot scientific plotting > software package (plplot.sf.net); 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 > __________________________ > |