| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Math.Combinat.Diagrams.LatticePaths
Description
Lattice path diagrams
For example, the code:
let u = UpStep
d = DownStep
path = [ u,u,d,u,u,u,d,u,d,d,u,d,u,u,u,d,d,d,d,d,u,d,u,u,d,d ]
drawLatticePath $ pathproduces the diagram:
- data LatticeConvention
- drawLatticePath :: Renderable (Path V2 Double) b => LatticePath -> QDiagram b V2 Double Any
- drawLatticePath' :: Renderable (Path V2 Double) b => LatticeConvention -> Colour Double -> Bool -> LatticePath -> QDiagram b V2 Double Any
- drawRectangularGrid :: Renderable (Path V2 Double) b => (Int, Int) -> QDiagram b V2 Double Any
Documentation
drawLatticePath :: Renderable (Path V2 Double) b => LatticePath -> QDiagram b V2 Double Any Source
Draws a lattice path with the default settings
Arguments
| :: Renderable (Path V2 Double) b | |
| => LatticeConvention | orientation |
| -> Colour Double | color |
| -> Bool | whether to draw a grid |
| -> LatticePath | whether to draw a grid |
| -> QDiagram b V2 Double Any |