combinat-diagrams-0.1: Graphical representations for various combinatorial objects

Safe HaskellNone
LanguageHaskell98

Math.Combinat.Diagrams.LatticePaths

Description

Lattice path diagrams

Synopsis

Documentation

data LatticeConvention Source

Which orientation to draw the lattice paths

Constructors

Hilly

the steps are (1,1) and (1,-1)

UpRight

the steps are (0,1) and (0,1)

drawLatticePath :: Renderable (Path R2) b => LatticePath -> Diagram b R2 Source

Draws a lattice path with the default settings

drawLatticePath' Source

Arguments

:: Renderable (Path R2) b 
=> LatticeConvention

orientation

-> Colour Double

color

-> Bool

whether to draw a grid

-> LatticePath

whether to draw a grid

-> Diagram b R2 

drawRectangularGrid :: Renderable (Path R2) b => (Int, Int) -> Diagram b R2 Source

Draws a rectangular grid of the given size