hunk ./chart/Graphics/Rendering/Chart/Layout.hs 345 - pickfn (Point x y) = case (lAxis,rAxis) of - (Just at,Nothing) -> Just $ L1P_PlotArea xv (mapy at y) (mapy at y) - (Nothing,Just at) -> Just $ L1P_PlotArea xv (mapy at y) (mapy at y) - (Just at1,Just at2) -> Just $ L1P_PlotArea xv (mapy at1 y) (mapy at2 y) - (Nothing,Nothing) -> Nothing + pickfn (Point x y) = do -- Maybe monad + xat <- mxat + (yat1,yat2) <- myats + return (L1P_PlotArea (mapx xat x) (mapy yat1 y) (mapy yat2 y)) hunk ./chart/Graphics/Rendering/Chart/Layout.hs 350 - xv = case (bAxis,tAxis) of - (Just at,_) -> mapx at x - (_,Just at) -> mapx at x + mxat = case (bAxis,tAxis) of + (Just at,_) -> Just at + (_,Just at) -> Just at + (Nothing,Nothing) -> Nothing + myats = case (lAxis,rAxis) of + (Just at,Nothing) -> Just (at,at) + (Nothing,Just at) -> Just (at,at) + (Just at1,Just at2) -> Just (at1,at2) + (Nothing,Nothing) -> Nothing