Does date-ticks possibly needs to cope with find-seconds failing to find the seconds?
Robby On Wed, Feb 6, 2013 at 5:02 PM, Neil Toronto <[email protected]> wrote: > On 02/06/2013 02:14 PM, Jimmy Olgeni wrote: > >> >> On Wed, 6 Feb 2013, Jimmy Olgeni wrote: >> >> The problem is that, due to this error, "make install" does not >>> complete and I cannot get a repeatable build for the package, but >>> maybe I can find a way to exclude the plot docs build. >>> >>> Does the weird date come from the docs source? >>> >> >> I found it in collects/plot/tests/low-level-**tests.rkt. I'll look for a >> way around :) >> > > Those are tests, which aren't run during setup. Besides that, there's no > (find-seconds 0 0 0 1 5 1970) in "low-level-tests.rkt". > > I scanned through the plot documentation and found this, though: > > (parameterize ([plot-x-label "Near x axis"] > [plot-y-label "Near y axis"] > [plot-z-label "Near z axis"] > [plot-x-ticks (date-ticks)] > [plot-y-ticks (time-ticks)] > [plot-z-ticks (fraction-ticks)] > [plot-x-far-label "Far x axis"] > [plot-y-far-label "Far y axis"] > [plot-z-far-label "Far z axis"] > [plot-x-far-ticks (linear-ticks)] > [plot-y-far-ticks (currency-ticks)] > [plot-z-far-ticks (log-ticks #:base 2)]) > (plot3d (lines3d '(#(1 1 1) #(40000000 4 4)) #:style 'transparent) > #:angle 45 #:altitude 50 > #:title "Axis Names and Tick Locations")) > > One of the tick labels on the near x axis is "1970-05". I don't remember > exactly how the tick layout and formatting code works, but it's very > possible that it uses `find-seconds' with the arguments 0 0 0 1 5 1970 to > position that label. > > BTW, it's not January 5, but May 1. Is that a valid date on your machine? > Also, does either (find-seconds 0 0 0 1 5 1970 #f) or (find-seconds 0 0 0 1 > 5 1970 #t) fail in Racket? > > Neil ⊥ > > > _________________________ > Racket Developers list: > http://lists.racket-lang.org/**dev <http://lists.racket-lang.org/dev> >
_________________________ Racket Developers list: http://lists.racket-lang.org/dev

