gnuplot-0.5.4.2: 2D and 3D plots using gnuplot

Safe HaskellSafe
LanguageHaskell98

Graphics.Gnuplot.Plot.TwoDimensional

Synopsis

Documentation

type T x y = T (T x y) Source #

Plots can be assembled using mappend or mconcat. You can alter attributes of embedded graphs using fmap.

list :: (C x, C y, C a) => T x y a -> [a] -> T x y Source #

list Type.listLines (take 30 (let fibs = 0 : 1 : zipWith (+) fibs (tail fibs) in fibs))
list Type.lines (take 30 (let fibs0 = 0 : fibs1; fibs1 = 1 : zipWith (+) fibs0 fibs1 in zip fibs0 fibs1))

function :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> (a -> b) -> T x y Source #

function Type.line (linearScale 1000 (-10,10)) sin

functions :: (C x, C y, C a, C b) => T x y (a, b) -> [a] -> [a -> b] -> T x y Source #

functions Type.line (linearScale 1000 (-10,10)) [sin, cos]

parameterFunction :: (C x, C y, C a) => T x y a -> [t] -> (t -> a) -> T x y Source #

parameterFunction Type.line (linearScale 1000 (0,2*pi)) (\t -> (sin (2*t), cos t))

listFromFile :: (C i, C y) => T i y y -> FilePath -> Int -> T i y Source #

pathFromFile :: (C x, C y) => T x y (x, y) -> FilePath -> Int -> Int -> T x y Source #

linearScale :: Fractional a => Integer -> (a, a) -> [a] Source #

functionToGraph :: [x] -> (x -> y) -> [(x, y)] Source #