Skip to content

Commit

Permalink
Add d to system-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
soegaard committed Jun 14, 2024
1 parent 119b2b3 commit 343ba43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions metapict/system.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
(and (or label show?)
(label-bot (or label (~a x)) (point->pt px)))))

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


(define (system-grid s #:last-tick? [ts? #t] #:first-tick? [ft? #f])
(define (system-grid s [d 1] #:last-tick? [ts? #t] #:first-tick? [ft? #f])
(defm (system: origin a1 a2) s)
(def xs (tick-ordinates a1 #:last-tick? ts? #:first-tick? ft?))
(def ys (tick-ordinates a2 #:last-tick? ts? #:first-tick? ft?))
(def xs (tick-ordinates a1 d #:last-tick? ts? #:first-tick? ft?))
(def ys (tick-ordinates a2 d #:last-tick? ts? #:first-tick? ft?))
(def bl (point s (first xs) (first ys)))
(def ur (point s (last xs) (last ys)))
(def xmin (first xs))
Expand Down

0 comments on commit 343ba43

Please sign in to comment.