graphviz-2999.20.2.1: 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 Source #

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

Constructors

BScheme BrewerName Word8 |

#### Instances

Instances details

Read BrewerScheme Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods readsPrec :: Int -> ReadS BrewerScheme Source # readList :: ReadS [BrewerScheme] Source # readPrec :: ReadPrec BrewerScheme Source # readListPrec :: ReadPrec [BrewerScheme] Source #
Show BrewerScheme Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods showsPrec :: Int -> BrewerScheme -> ShowS Source # show :: BrewerScheme -> String Source # showList :: [BrewerScheme] -> ShowS Source #
Eq BrewerScheme Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods (==) :: BrewerScheme -> BrewerScheme -> Bool Source # (/=) :: BrewerScheme -> BrewerScheme -> Bool Source #
Ord BrewerScheme Source # |

Instance details

Defined in Data.GraphViz.Attributes.ColorScheme

Methods

compare :: BrewerScheme -> BrewerScheme -> Ordering Source #

(<) :: BrewerScheme -> BrewerScheme -> Bool Source #

(<=) :: BrewerScheme -> BrewerScheme -> Bool Source #

(>) :: BrewerScheme -> BrewerScheme -> Bool Source #

(>=) :: BrewerScheme -> BrewerScheme -> Bool Source #

max :: BrewerScheme -> BrewerScheme -> BrewerScheme Source #

min :: BrewerScheme -> BrewerScheme -> BrewerScheme Source #

ParseDot BrewerScheme Source # |
Instance details Defined in Data.GraphViz.Parsing Methods parseUnqt :: Parse BrewerScheme Source # parse :: Parse BrewerScheme Source # parseUnqtList :: Parse [BrewerScheme] Source # parseList :: Parse [BrewerScheme] Source #
PrintDot BrewerScheme Source # |
Instance details Defined in Data.GraphViz.Printing Methods unqtDot :: BrewerScheme -> DotCode Source # toDot :: BrewerScheme -> DotCode Source # unqtListToDot :: [BrewerScheme] -> DotCode Source # listToDot :: [BrewerScheme] -> DotCode Source #

data BrewerName Source #

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

Instances details

Bounded BrewerName Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods minBound :: BrewerName Source # maxBound :: BrewerName Source #
Enum BrewerName Source # |

Instance details

Defined in Data.GraphViz.Attributes.ColorScheme

Methods

succ :: BrewerName -> BrewerName Source #

pred :: BrewerName -> BrewerName Source #

toEnum :: Int -> BrewerName Source #

fromEnum :: BrewerName -> Int Source #

enumFrom :: BrewerName -> [BrewerName] Source #

enumFromThen :: BrewerName -> BrewerName -> [BrewerName] Source #

enumFromTo :: BrewerName -> BrewerName -> [BrewerName] Source #

enumFromThenTo :: BrewerName -> BrewerName -> BrewerName -> [BrewerName] Source #

Read BrewerName Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods readsPrec :: Int -> ReadS BrewerName Source # readList :: ReadS [BrewerName] Source # readPrec :: ReadPrec BrewerName Source # readListPrec :: ReadPrec [BrewerName] Source #
Show BrewerName Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods showsPrec :: Int -> BrewerName -> ShowS Source # show :: BrewerName -> String Source # showList :: [BrewerName] -> ShowS Source #
Eq BrewerName Source # |
Instance details Defined in Data.GraphViz.Attributes.ColorScheme Methods (==) :: BrewerName -> BrewerName -> Bool Source # (/=) :: BrewerName -> BrewerName -> Bool Source #
Ord BrewerName Source # |

Instance details

Defined in Data.GraphViz.Attributes.ColorScheme

Methods

compare :: BrewerName -> BrewerName -> Ordering Source #

(<) :: BrewerName -> BrewerName -> Bool Source #

(<=) :: BrewerName -> BrewerName -> Bool Source #

(>) :: BrewerName -> BrewerName -> Bool Source #

(>=) :: BrewerName -> BrewerName -> Bool Source #

max :: BrewerName -> BrewerName -> BrewerName Source #

min :: BrewerName -> BrewerName -> BrewerName Source #

ParseDot BrewerName Source # |
Instance details Defined in Data.GraphViz.Parsing Methods parseUnqt :: Parse BrewerName Source # parse :: Parse BrewerName Source # parseUnqtList :: Parse [BrewerName] Source # parseList :: Parse [BrewerName] Source #
PrintDot BrewerName Source # |
Instance details Defined in Data.GraphViz.Printing Methods unqtDot :: BrewerName -> DotCode Source # toDot :: BrewerName -> DotCode Source # unqtListToDot :: [BrewerName] -> DotCode Source # listToDot :: [BrewerName] -> DotCode Source #

data BrewerColor Source #

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

Constructors

BC BrewerScheme Word8 |

#### Instances

Instances details

Read BrewerColor Source # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods readsPrec :: Int -> ReadS BrewerColor Source # readList :: ReadS [BrewerColor] Source # readPrec :: ReadPrec BrewerColor Source # readListPrec :: ReadPrec [BrewerColor] Source #
Show BrewerColor Source # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods showsPrec :: Int -> BrewerColor -> ShowS Source # show :: BrewerColor -> String Source # showList :: [BrewerColor] -> ShowS Source #
Eq BrewerColor Source # |
Instance details Defined in Data.GraphViz.Attributes.Colors.Brewer Methods (==) :: BrewerColor -> BrewerColor -> Bool Source # (/=) :: BrewerColor -> BrewerColor -> Bool Source #
Ord BrewerColor Source # |

Instance details

Defined in Data.GraphViz.Attributes.Colors.Brewer

Methods

compare :: BrewerColor -> BrewerColor -> Ordering Source #

(<) :: BrewerColor -> BrewerColor -> Bool Source #

(<=) :: BrewerColor -> BrewerColor -> Bool Source #

(>) :: BrewerColor -> BrewerColor -> Bool Source #

(>=) :: BrewerColor -> BrewerColor -> Bool Source #

max :: BrewerColor -> BrewerColor -> BrewerColor Source #

min :: BrewerColor -> BrewerColor -> BrewerColor Source #

NamedColor BrewerColor Source # |
Instance details Defined in Data.GraphViz.Attributes.Colors Methods colorScheme :: BrewerColor -> ColorScheme toColor :: BrewerColor -> Color Source # printNC :: Bool -> BrewerColor -> DotCode parseNC' :: Bool -> Parse BrewerColor