DIAGRAM: rm unnecessary square
This commit is contained in:
parent
eadbf76978
commit
60843e5879
@ -118,8 +118,7 @@ xAxis =
|
|||||||
labels p _ =
|
labels p _ =
|
||||||
position $
|
position $
|
||||||
zip (mkPoint <$> xs)
|
zip (mkPoint <$> xs)
|
||||||
((\x -> (flip (<>) (square 1 # lw none) .
|
((\x -> (text . show $ x) # scale 10) <$> xs)
|
||||||
text . show $ x) # scale 10) <$> xs)
|
|
||||||
where
|
where
|
||||||
xs :: [Int]
|
xs :: [Int]
|
||||||
xs = take (floor . (/) (xuD p - xlD p) $ (sqS p))
|
xs = take (floor . (/) (xuD p - xlD p) $ (sqS p))
|
||||||
@ -146,8 +145,7 @@ yAxis =
|
|||||||
labels p _ =
|
labels p _ =
|
||||||
position $
|
position $
|
||||||
zip (mkPoint <$> ys)
|
zip (mkPoint <$> ys)
|
||||||
((\x -> (flip (<>) (square 1 # lw none) .
|
((\x -> (text . show $ x) # scale 10) <$> ys)
|
||||||
text . show $ x) # scale 10) <$> ys)
|
|
||||||
where
|
where
|
||||||
ys :: [Int]
|
ys :: [Int]
|
||||||
ys = take (floor . (/) (yuD p - ylD p) $ (sqS p))
|
ys = take (floor . (/) (yuD p - ylD p) $ (sqS p))
|
||||||
|
Loading…
Reference in New Issue
Block a user