plot-0.1.7: A plotting library, exportable as eps/pdf/svg/png or renderable with gtk

Portabilityportable
Stabilityprovisional
Maintainerhaskell.vivian.mcphail <at> gmail <dot> com
Safe HaskellNone

Graphics.Rendering.Plot.Figure.Simple

Contents

Description

One line Figure creation

Synopsis

Plotting

plot :: Dataset d => d -> Figure ()Source

create a figure with a single linear plot with lower X and Y axes whose ranges are set from the data

loglog :: Dataset d => d -> Figure ()Source

create a figure with a single log-log plot with lower X and Y axes whose ranges are set from the data

semilog :: Dataset d => d -> Figure ()Source

Deprecated: use linlog

create a figure with a single linear-log plot with lower X and Y axes whose ranges are set from the data

linlog :: Dataset d => d -> Figure ()Source

create a figure with a single linear-log plot with lower X and Y axes whose ranges are set from the data

loglin :: Dataset d => d -> Figure ()Source

create a figure with a single log-linear plot with lower X and Y axes whose ranges are set from the data

parametric :: (Double -> Double, Double -> Double) -> (Double, Double) -> Int -> Figure ()Source

create a figure with a single parametric plot over n points with lower X and Y axes whose ranges are set from the data

Formatting

title :: String -> Figure ()Source

set the title

subtitle :: String -> Figure ()Source

set the subtitle

The following functions can be applied to a figure or a plot. When applied in Figure context a single plot is assumed

class Simple m Source

Instances

grid :: Simple m => Bool -> m ()Source

set the gridlines

xrange :: Simple m => Scale -> Double -> Double -> m ()Source

set the x range

yrange :: Simple m => Scale -> Double -> Double -> m ()Source

set the y range

xautorange :: Simple m => m ()Source

set the x range from data

yautorange :: Simple m => m ()Source

set the y range from data

xautorangeLog :: Simple m => m ()Source

set the x range from data

yautorangeLog :: Simple m => m ()Source

set the y range from data

xlabel :: Simple m => String -> m ()Source

set the x label

ylabel :: Simple m => String -> m ()Source

set the y label