hunk ./src/Demo.hs 28 +import Control.Monad (liftM2, ) hunk ./src/Demo.hs 56 +image2d :: Plot2D.T Double Double +image2d = + case linearScale 300 (-20,20) of + xs -> + Plot2D.function Graph2D.image (liftM2 (,) xs xs) $ + \(x,y) -> cos (sqrt (x*x+x*y+y*y)) + hunk ./src/Demo.hs 204 + GP.plotDefault image2d : hunk ./src/Graphics/Gnuplot/Graph/TwoDimensional.hs 49 + image, hunk ./src/Graphics/Gnuplot/Private/Graph2DType.hs 65 +image :: (Atom.C x, Atom.C y, Atom.C z) => T x y ((x, y), z) hunk ./src/Graphics/Gnuplot/Private/Graph2DType.hs 108 +image = Cons "image" hunk ./gnuplot.cabal 87 - transformers >=0.3 && <0.4 + transformers >=0.3 && <0.4, + deepseq >=1.0 && <1.4 hunk ./src/Graphics/Gnuplot/Private/Command.hs 10 +import Control.DeepSeq (deepseq, ) hunk ./src/Graphics/Gnuplot/Private/Command.hs 20 - (cmds, files) -> do + (cmds, files) -> deepseq cmds $ do