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

Graphics.Gnuplot.Plot.TwoDimensional

Contents

Synopsis

Documentation

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

type T = T TSource

Plots can be assembled using mappend or mconcat.

computed plots

list :: Show a => [a] -> TSource

 list (take 30 (let fibs = 0 : 1 : zipWith (+) fibs (tail fibs) in fibs))

function :: Show a => [a] -> (a -> a) -> TSource

 function (linearScale 1000 (-10,10)) sin

functions :: Show a => [a] -> [a -> a] -> TSource

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

path :: Show a => [(a, a)] -> TSource

parameterFunction :: Show a => [a] -> (a -> (a, a)) -> TSource

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

plot stored data