Hi Alan,

On 4/26/11 12:00 AM, Alan W. Irwin wrote:
Getting back to the present issue, example 29 has some pages where the
time range is specified exactly, and that may be all you need to get
the ticks at the exact time intervals that you want. However, if that
doesn't work I suggest you give us a complete but simple test case
(say a subset of example 29 in the language you are most comfortable
with) that demonstrates time format functionality that you think needs
improving.  We are open to good suggestions here because a lot of the
PLplot time API is (relatively) new to us as well.
I've attached a small test case for my issue. The time range is 10^8 seconds which corresponds to ~3.2 years so I expect years to be used as time unit and that xticks are located on new year, i.e., Jan 01 00:00.

With plplot 5.9.6 I get xticks 31 06:00, 31 12:00, and 31 18:00.

Thanks,
Peter

#include <plplot/plstream.h>
int main(void)
{
        plstream pls(1,1, "png", "tmp.png");
        pls.scolbga(255,255,255,0);
        pls.init();
        pls.adv(0);
        pls.vsta();
        pls.syax(6,0);
        double xmin = 1e9;
        double xmax = 1.1e9;
        pls.wind(xmin,xmax,0,250);
        pls.timefmt("%d %H:%M");
        pls.box("bcnstd", 0, 1, "bcnstv", 0, 2);
        pls.lab("Date", "Count", "title");
        pls.join(xmin,100,xmax,200);
        return 0;
}
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to