textPlot-0.1: Graphs functions as lines of text

TextPlot

Synopsis

Documentation

type TextPlot = [[Char]]Source

data Plot Source

Specifies a set of functions to be graphed in Cartesian coordinates

Instances

data PlotParam Source

Specifies a set of parametric functions to be graphed in Cartesian coordinates

data PlotPolar Source

Specifies a set of functions to be graphed in polar coordinates

insertF :: (Double -> Double) -> Plot -> PlotSource

adds a function to a Plot

insertParam :: (Double -> (Double, Double), Double, Double, Int) -> PlotParam -> PlotParamSource

adds a function to a PlotParam

insertPolar :: (Double -> Double, Double, Double, Int) -> PlotPolar -> PlotPolarSource

adds a function to a PlotPolar

printPlot :: TextPlot -> IO ()Source

prints a TextPlot to the terminal

export :: String -> TextPlot -> IO ()Source

writes a TextPlot to a specified file name

view :: String -> IO ()Source

prints the a TextPlot from a file to the terminal