graphviz-2999.20.0.2: Bindings to Graphviz for graph visualisation.

Copyright | (c) Ivan Lazar Miljenovic
License | 3-Clause BSD-style
Maintainer | Ivan.Miljenovic@gmail.com
Safe Haskell | None
Language | Haskell2010

Data.GraphViz.Attributes.Colors.Brewer

Description

You almost definitely do not want to use this module. It is only defined for completeness when parsing existing Dot code.

Graphviz contains a list of colors known as the /Brewer color schemes/.

These colors are available under an Apache-style license: http://www.graphviz.org/doc/info/colors.html#brewer_license. As such, they are not recommended for general use, and have only been included in this package for completeness.

The complete list of Brewer colors can be found at http://www.graphviz.org/doc/info/colors.html#brewer.

Synopsis

- data BrewerScheme = BScheme BrewerName Word8
- data BrewerName
  - = Accent
  - | Blues
  - | Brbg
  - | Bugn
  - | Bupu
  - | Dark2
  - | Gnbu
  - | Greens
  - | Greys
  - | Oranges
  - | Orrd
  - | Paired
  - | Pastel1
  - | Pastel2
  - | Piyg
  - | Prgn
  - | Pubu
  - | Pubugn
  - | Puor
  - | Purd
  - | Purples
  - | Rdbu
  - | Rdgy
  - | Rdpu
  - | Rdylbu
  - | Rdylgn
  - | Reds
  - | Set1
  - | Set2
  - | Set3
  - | Spectral
  - | Ylgn
  - | Ylgnbu
  - | Ylorbr
  - | Ylorrd
- data BrewerColor = BC BrewerScheme Word8

# Documentation

data BrewerScheme #

Specify which colour palette and how many colours it has. Note the allowed values for the different `BrewerName`s.

Constructors

BScheme BrewerName Word8 |

Instances

Eq BrewerScheme # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods (==) :: BrewerScheme -> BrewerScheme -> Bool # (/=) :: BrewerScheme -> BrewerScheme -> Bool #
Ord BrewerScheme # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods compare :: BrewerScheme -> BrewerScheme -> Ordering # (<) :: BrewerScheme -> BrewerScheme -> Bool # (<=) :: BrewerScheme -> BrewerScheme -> Bool # (>) :: BrewerScheme -> BrewerScheme -> Bool # (>=) :: BrewerScheme -> BrewerScheme -> Bool # max :: BrewerScheme -> BrewerScheme -> BrewerScheme # min :: BrewerScheme -> BrewerScheme -> BrewerScheme #
Read BrewerScheme # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods readsPrec :: Int -> ReadS BrewerScheme # readList :: ReadS [BrewerScheme] # readPrec :: ReadPrec BrewerScheme # readListPrec :: ReadPrec [BrewerScheme] #
Show BrewerScheme # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods showsPrec :: Int -> BrewerScheme -> ShowS # show :: BrewerScheme -> String # showList :: [BrewerScheme] -> ShowS #
ParseDot BrewerScheme # |
Instance details Defined in Data.GraphViz.Parsing Methods parseUnqt :: Parse BrewerScheme # parse :: Parse BrewerScheme # parseUnqtList :: Parse [BrewerScheme] # parseList :: Parse [BrewerScheme] #
PrintDot BrewerScheme # |
Instance details Defined in Data.GraphViz.Printing Methods unqtDot :: BrewerScheme -> DotCode # toDot :: BrewerScheme -> DotCode # unqtListToDot :: [BrewerScheme] -> DotCode # listToDot :: [BrewerScheme] -> DotCode #

data BrewerName #

All of these have a minimum level value of `3`, with a maximum of `9` unless otherwise specified.

Constructors

Accent | Maximum of `8`.
Blues |
Brbg | Maximum of `11`.
Bugn |
Bupu |
Dark2 | Maximum of `8`.
Gnbu |
Greens |
Greys |
Oranges |
Orrd |
Paired | Maximum of `12`.
Pastel1 |
Pastel2 | Maximum of `8`.
Piyg | Maximum of `11`.
Prgn | Maximum of `11`.
Pubu |
Pubugn |
Puor | Maximum of `11`; note that the last two are listed after the ``Purd`` values in the documentation.
Purd |
Purples |
Rdbu | Maximum of `11`; note that the last two are listed first.
Rdgy | Maximum of `11`; note that the last two are listed after the ``Rdpu`` values in the documentation.
Rdpu |
Rdylbu | Maximum of `11`.
Rdylgn | Maximum of `11`.
Reds |
Set1 |
Set2 | Maximum of `8`.
Set3 | Maximum of `12`.
Spectral | Maximum of `11`.
Ylgn |
Ylgnbu |
Ylorbr |
Ylorrd |

Instances

Bounded BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods minBound :: BrewerName # maxBound :: BrewerName #
Enum BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods succ :: BrewerName -> BrewerName # pred :: BrewerName -> BrewerName # toEnum :: Int -> BrewerName # fromEnum :: BrewerName -> Int # enumFrom :: BrewerName -> [BrewerName] # enumFromThen :: BrewerName -> BrewerName -> [BrewerName] # enumFromTo :: BrewerName -> BrewerName -> [BrewerName] # enumFromThenTo :: BrewerName -> BrewerName -> BrewerName -> [BrewerName] #
Eq BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods (==) :: BrewerName -> BrewerName -> Bool # (/=) :: BrewerName -> BrewerName -> Bool #
Ord BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods compare :: BrewerName -> BrewerName -> Ordering # (<) :: BrewerName -> BrewerName -> Bool # (<=) :: BrewerName -> BrewerName -> Bool # (>) :: BrewerName -> BrewerName -> Bool # (>=) :: BrewerName -> BrewerName -> Bool # max :: BrewerName -> BrewerName -> BrewerName # min :: BrewerName -> BrewerName -> BrewerName #
Read BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods readsPrec :: Int -> ReadS BrewerName # readList :: ReadS [BrewerName] # readPrec :: ReadPrec BrewerName # readListPrec :: ReadPrec [BrewerName] #
Show BrewerName # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods showsPrec :: Int -> BrewerName -> ShowS # show :: BrewerName -> String # showList :: [BrewerName] -> ShowS #
ParseDot BrewerName # |
Instance details Defined in Data.GraphViz.Parsing Methods parseUnqt :: Parse BrewerName # parse :: Parse BrewerName # parseUnqtList :: Parse [BrewerName] # parseList :: Parse [BrewerName] #
PrintDot BrewerName # |
Instance details Defined in Data.GraphViz.Printing Methods unqtDot :: BrewerName -> DotCode # toDot :: BrewerName -> DotCode # unqtListToDot :: [BrewerName] -> DotCode # listToDot :: [BrewerName] -> DotCode #

data BrewerColor #

This value should be between `1` and the level of the `BrewerScheme` being used.

Constructors

BC BrewerScheme Word8 |

Instances

Eq BrewerColor # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods (==) :: BrewerColor -> BrewerColor -> Bool # (/=) :: BrewerColor -> BrewerColor -> Bool #
Ord BrewerColor # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods compare :: BrewerColor -> BrewerColor -> Ordering # (<) :: BrewerColor -> BrewerColor -> Bool # (<=) :: BrewerColor -> BrewerColor -> Bool # (>) :: BrewerColor -> BrewerColor -> Bool # (>=) :: BrewerColor -> BrewerColor -> Bool # max :: BrewerColor -> BrewerColor -> BrewerColor # min :: BrewerColor -> BrewerColor -> BrewerColor #
Read BrewerColor # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods readsPrec :: Int -> ReadS BrewerColor # readList :: ReadS [BrewerColor] # readPrec :: ReadPrec BrewerColor # readListPrec :: ReadPrec [BrewerColor] #
Show BrewerColor # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods showsPrec :: Int -> BrewerColor -> ShowS # show :: BrewerColor -> String # showList :: [BrewerColor] -> ShowS #
NamedColor BrewerColor # |
Instance details Defined in Data.GraphViz.Attributes.Colors Methods colorScheme :: BrewerColor -> ColorScheme toColor :: BrewerColor -> Color # printNC :: Bool -> BrewerColor -> DotCode parseNC' :: Bool -> Parse BrewerColor