Hi,
the first thing that comes to my mind is that recent gnuplot versions don't support the terminal "gif" anymore. Maybe you want to try changing that to e.g. png.

Update: Further Examination(tm) shows:

  1. No terminal "gif" in my gnuplot:
    $ ./datesort.pl 1e-05 1e-10 gnuplot> set terminal gif ^ "27968-gps.plt", line 1: unknown or ambiguous terminal type; +type just 'set terminal' for a list
  2. The resulting PNG image is a very good looking chart without any data plotted *grin*
  3. The datafile gpsmk4.dat is empty (that becomes visible easier, when you don't put your files into /tmp; not speaking of not deleting them at the end of your programm...)
  4. if (compare_dates([$month,$day,$hour,$min,$sec], $sdate_cursor) > 0)
    this statement is never true (your start-month is March and all data is from January...?)
    So maybe you want to check that logic...

Regards Stefan K


In reply to Re: Date sorting by stefan k
in thread Date sorting by maderman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.