octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50493] datetick crashes on certain date range


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #50493] datetick crashes on certain date ranges
Date: Mon, 13 Mar 2017 04:46:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0

Follow-up Comment #10, bug #50493 (project octave):

@Rik: The old datetick using the new datenum will place ticks at

feb-15 00:00 for a 28 day february
feb-15 12:00 for a 29 day leap february
xxx-16 00:00 for a 30 day month
xxx-16 12:00 for a 31 day month

While this is mathematically correct, it is confusing in plots as the tick
*labels* are inconsistent with the tick locations now, because they print out
only the trunctated day without the time. This looks strange sometimes, e.g.
plotting global radiation, as sometimes maxima and sometimes minima are on the
intersection with the grid.

I think tick labels should always precisely name their location: when showing
just the day and no time they should be placed right at midnight.

My patch puts ticks always at midnight of the 15th of each month,  which might
be questionable but which is the default e.g. in financial applications. I
would also be perfectly satisfied if they sit sometimes on the 15th and
sometimes on the 16th - as long as one can derive their precise and consistent
location from the label.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50493>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]