Skip to content

Commit 343ba43

Browse files
committed
Add d to system-grid
1 parent 119b2b3 commit 343ba43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

metapict/system.rkt

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
(and (or label show?)
145145
(label-bot (or label (~a x)) (point->pt px)))))
146146

147-
(define (show-value-reading-y p
147+
(define (show-value-reading-y p
148148
#:show-value [show? #t]
149149
#:label [label #f]
150150
#:color [col "black"]
@@ -157,10 +157,10 @@
157157
(label-lft (or label (~a y)) (point->pt py)))))
158158

159159

160-
(define (system-grid s #:last-tick? [ts? #t] #:first-tick? [ft? #f])
160+
(define (system-grid s [d 1] #:last-tick? [ts? #t] #:first-tick? [ft? #f])
161161
(defm (system: origin a1 a2) s)
162-
(def xs (tick-ordinates a1 #:last-tick? ts? #:first-tick? ft?))
163-
(def ys (tick-ordinates a2 #:last-tick? ts? #:first-tick? ft?))
162+
(def xs (tick-ordinates a1 d #:last-tick? ts? #:first-tick? ft?))
163+
(def ys (tick-ordinates a2 d #:last-tick? ts? #:first-tick? ft?))
164164
(def bl (point s (first xs) (first ys)))
165165
(def ur (point s (last xs) (last ys)))
166166
(def xmin (first xs))

0 commit comments

Comments
 (0)