PrimitiveArray-Pretty-0.0.0.1: Pretty-printing for primitive arrays

Safe HaskellNone
LanguageHaskell2010

Diagrams.TwoD.ProbabilityGrid

Description

Probability grid square drawing routines.

Synopsis

Documentation

data FillWeight Source

Fill weight for our grid. If the fill weight is logarithmic, then the line length is 1 / (1 + log value) otherwise it is value.

Constructors

FWlog 
FWlinear 

gridSquare :: (Monoid m, Semigroup m, TrailLike (QDiagram b V2 Double m)) => FillWeight -> Log Double -> QDiagram b V2 Double m Source

A single square in our grid.

grid :: (Renderable (Text Double) b, Renderable (Path V2 Double) b) => FillWeight -> t -> Int -> [String] -> [String] -> [Log Double] -> QDiagram b V2 Double Any Source

Draw the actual grid.

svgGridFile :: FilePath -> FillWeight -> Int -> Int -> [String] -> [String] -> [Log Double] -> IO () Source

Render as svg.

epsGridFile :: String -> FillWeight -> Int -> Int -> [String] -> [String] -> [Log Double] -> IO () Source

Render as eps.