Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 $ path
produces 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
data LatticeConvention Source
Which orientation to draw the lattice paths
drawLatticePath :: Renderable (Path V2 Double) b => LatticePath -> QDiagram b V2 Double Any Source
Draws a lattice path with the default settings
:: 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 |