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 212
212
213
213
(defparam point-sym Point-Sym 'circle )
214
214
(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 )
218
218
(defparam2 point-size Real Nonnegative-Real 6 (nonnegative-rational 'point-size ))
219
219
(defparam2 point-line-width Real Nonnegative-Real 1 (nonnegative-rational 'point-line-width ))
220
220
(defparam2 point-alpha Real Nonnegative-Real 1 (unit-ivl 'point-alpha ))
Original file line number Diff line number Diff line change 651
651
(hash-update height i (λ ([v : Exact-Rational]) (max h v)) (λ () 0 ))))])
652
652
(define widths
653
653
((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 )
655
655
(hash->list width) < #:key car)))
656
656
(define heights
657
657
((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 )
659
659
(hash->list height) < #:key car)))
660
660
(cond
661
661
[compact? (values widths heights)]
Original file line number Diff line number Diff line change 71
71
[(empty? vs) empty-renderer2d]
72
72
[else
73
73
(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))))
75
75
(match-define (list (vector #{xs : (Listof Real)} #{ys : (Listof Real)}) ... ) vs)
76
76
(let ([x-min (if x-min x-min (apply min* xs))]
77
77
[x-max (if x-max x-max (apply max* xs))]
Original file line number Diff line number Diff line change 74
74
(cond [(empty? vs) empty-renderer3d]
75
75
[else
76
76
(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)
78
78
#:ivls (vector (ivl x-min x-max)
79
79
(ivl y-min y-max)
80
80
(ivl z-min z-max))))
You can’t perform that action at this time.
0 commit comments