Commit 9e1c43a8 authored by Ryan Davis's avatar Ryan Davis

fixed the y graph point calculation to stay above the minimal region of the...

fixed the y graph point calculation to stay above the minimal region of the graph, not of the data origin.  This bug caused weird stuff when trying to graph negative numbers.

darcs-hash:20090126213309-ac9f3-d0764045ab878cd4fb137a8c51bc6e3c53d5c9f9.gz
parent cb6ea858
......@@ -229,8 +229,7 @@ the Y axis")))
(height height)) graph
(make-point (+ (x d-o)
(* (x d-s) x))
(max (y d-o)
(max (y graph)
(+ (y d-o)
(* (y d-s) y)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment