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

Copyright (c) A. V. H. McPhail 2010 2015 BSD3 haskell.vivian.mcphail gmail com provisional portable None Haskell98

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

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 #

Minimal complete definition

simple

Instances

 Source # Methodssimple :: Plot () -> Figure () Source # Methodssimple :: Plot () -> Plot ()

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