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

Safe HaskellNone
LanguageHaskell2010

Math.Combinat.Diagrams.Partitions.Plane

Description

Drawing plane partitions.

For example:

drawPlanePartition3D $ 
  PlanePart [ [5,4,3,3,1]
            , [4,4,2,1]
            , [3,2]
            , [2,1]
            , [1]
            , [1]
            ]

produces the picture:

Synopsis

Documentation

drawPlanePartition3D' :: Renderable (Path V2 Double) b => (Colour Double, Colour Double, Colour Double) -> PlanePart -> QDiagram b V2 Double Any Source

Draws 3D-like (but in fact 2D) diagram of a plane partition, coloring the faces with the given colors

drawPlanePartition2D :: (Renderable (Path V2 Double) b, Renderable (Text Double) b) => PlanePart -> QDiagram b V2 Double Any Source

Draws a plane partitions as a tablaeux, with numbers indicating the Z height