File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 212212
213213(defparam point-sym Point-Sym 'circle )
214214(defparam point-color Plot-Color 0 )
215- (defparam point-x-jitter Real 0 )
216- (defparam point-y-jitter Real 0 )
217- (defparam point-z-jitter Real 0 )
215+ (defparam point-x-jitter Nonnegative- Real 0 )
216+ (defparam point-y-jitter Nonnegative- Real 0 )
217+ (defparam point-z-jitter Nonnegative- Real 0 )
218218(defparam2 point-size Real Nonnegative-Real 6 (nonnegative-rational 'point-size ))
219219(defparam2 point-line-width Real Nonnegative-Real 1 (nonnegative-rational 'point-line-width ))
220220(defparam2 point-alpha Real Nonnegative-Real 1 (unit-ivl 'point-alpha ))
Original file line number Diff line number Diff line change 651651 (hash-update height i (λ ([v : Exact-Rational]) (max h v)) (λ () 0 ))))])
652652 (define widths
653653 ((inst map Exact-Rational (Pairof Integer Exact-Rational))
654- cdr ((inst sort (Pairof Integer Exact-Rational))
654+ cdr ((inst sort (Pairof Integer Exact-Rational) Integer )
655655 (hash->list width) < #:key car)))
656656 (define heights
657657 ((inst map Exact-Rational (Pairof Integer Exact-Rational))
658- cdr ((inst sort (Pairof Integer Exact-Rational))
658+ cdr ((inst sort (Pairof Integer Exact-Rational) Integer )
659659 (hash->list height) < #:key car)))
660660 (cond
661661 [compact? (values widths heights)]
Original file line number Diff line number Diff line change 7171 [(empty? vs) empty-renderer2d]
7272 [else
7373 (unless (= 0 x-jitter y-jitter)
74- (points-apply-jitters vs (vector x-jitter y-jitter) #:ivls (vector (ivl x-min x-max) (ivl y-min y-max))))
74+ (points-apply-jitters vs ((inst vector Nonnegative-Real) x-jitter y-jitter) #:ivls (vector (ivl x-min x-max) (ivl y-min y-max))))
7575 (match-define (list (vector #{xs : (Listof Real)} #{ys : (Listof Real)}) ... ) vs)
7676 (let ([x-min (if x-min x-min (apply min* xs))]
7777 [x-max (if x-max x-max (apply max* xs))]
Original file line number Diff line number Diff line change 7474 (cond [(empty? vs) empty-renderer3d]
7575 [else
7676 (unless (= 0 x-jitter y-jitter z-jitter)
77- (points-apply-jitters vs (vector x-jitter y-jitter z-jitter)
77+ (points-apply-jitters vs ((inst vector Nonnegative-Real) x-jitter y-jitter z-jitter)
7878 #:ivls (vector (ivl x-min x-max)
7979 (ivl y-min y-max)
8080 (ivl z-min z-max))))
You can’t perform that action at this time.
0 commit comments