Chart-1.1: A library for generating 2D Charts and Plots

Safe HaskellNone

Graphics.Rendering.Chart.Simple.Internal

Synopsis

Documentation

data PlotKind Source

Type to define a few simple properties of each plot.

data InternalPlot x y Source

Constructors

IPY [y] [PlotKind] 
IPX [x] [PlotKind] 

plot :: PlotType a => aSource

The main plotting function. The idea behind PlotType is shamelessly copied from Text.Printf (and is not exported). All you need to know is that your arguments need to be in class PlotArg. And PlotArg consists of functions and [Double] and String and PlotKind or [PlotKind].

class PlotType t whereSource

Methods

pl :: [UPlot] -> tSource

Instances

plotPDF :: PlotPDFType a => String -> aSource

Save a plot as a PDF file.

class PlotPDFType t whereSource

Methods

pld :: FilePath -> [UPlot] -> tSource

Instances

(PlotArg a, PlotPDFType r) => PlotPDFType (a -> r) 

plotPS :: PlotPSType a => String -> aSource

Save a plot as a postscript file.

class PlotPSType t whereSource

Methods

pls :: FilePath -> [UPlot] -> tSource

Instances

(PlotArg a, PlotPSType r) => PlotPSType (a -> r) 

plotPNG :: PlotPNGType a => String -> aSource

Save a plot as a png file.

class PlotPNGType t whereSource

Methods

plp :: FilePath -> [UPlot] -> tSource

Instances

(PlotArg a, PlotPNGType r) => PlotPNGType (a -> r) 

class PlotArg a whereSource

Methods

toUPlot :: a -> [UPlot]Source

Instances

class IsPlot c whereSource

Methods

toUPlot' :: [c] -> [UPlot]Source

Instances

IsPlot Char 
IsPlot Double 
IsPlot PlotKind 
IsPlot p => IsPlot [p] 
(Real a, Real b, Fractional a, Fractional b) => IsPlot (a -> b) 
(IsPlot p, IsPlot q) => IsPlot (p, q) 
(IsPlot p, IsPlot q, IsPlot r) => IsPlot (p, q, r)