File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 62
62
(define num (animated-samples samples))
63
63
(define sample (g (vector x-ivl y-ivl) (vector num num)))
64
64
(match-define (2d-sample xs ys zss z-min z-max) sample)
65
+
66
+ (unless (and z-min z-max) (return empty))
67
+
65
68
(match-define (list (tick zs _ labels) ... ) (contour-ticks (plot-z-ticks) z-min z-max levels #f ))
66
69
67
70
;; need to check this or in-cycle below does an infinite loop (I think it's an in-cycle bug)
120
123
(define num (animated-samples samples))
121
124
(define sample (g (vector x-ivl y-ivl) (vector num num)))
122
125
(match-define (2d-sample xs ys zss z-min z-max) sample)
126
+
127
+ (unless (and z-min z-max) (return empty))
128
+
123
129
(match-define (list (tick zs _ labels) ... ) (contour-ticks (plot-z-ticks) z-min z-max levels #t ))
124
130
125
131
(define-values (z-ivls ivl-labels)
Original file line number Diff line number Diff line change 308
308
#:widths '(2 ) #:styles '(dot)))
309
309
#:x-min -5 #:x-max 5 #:y-min -5 #:y-max 5 ))
310
310
311
+ ;; Both plots should be blank
312
+ (plot (contours f2 -5 0 ) #:x-min 1 #:x-max 3 #:y-min 1 #:y-max 3 )
313
+ (plot (contour-intervals f2 -5 0 ) #:x-min 1 #:x-max 3 #:y-min 1 #:y-max 3 )
314
+
311
315
(time (plot (contour-intervals f1 -5 5 -5 5 #:label "z " )))
312
316
313
317
(time (plot (contour-intervals
You can’t perform that action at this time.
0 commit comments