Data.GraphViz.Attributes.Colors.Brewer

graphviz-2999.18.1.2: Bindings to Graphviz for graph visualisation.

Copyright | (c) Ivan Lazar Miljenovic
License | 3-Clause BSD-style
Maintainer | Ivan.Miljenovic@gmail.com
Safe Haskell | Safe
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 # |
Methods (==) :: BrewerScheme -> BrewerScheme -> Bool # (/=) :: BrewerScheme -> BrewerScheme -> Bool #
Ord BrewerScheme # |
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 # |
Methods readsPrec :: Int -> ReadS BrewerScheme # readList :: ReadS [BrewerScheme] # readPrec :: ReadPrec BrewerScheme # readListPrec :: ReadPrec [BrewerScheme] #
Show BrewerScheme # |
Methods showsPrec :: Int -> BrewerScheme -> ShowS # show :: BrewerScheme -> String # showList :: [BrewerScheme] -> ShowS #
ParseDot BrewerScheme # |
Methods parseUnqt :: Parse BrewerScheme # parse :: Parse BrewerScheme # parseUnqtList :: Parse [BrewerScheme] # parseList :: Parse [BrewerScheme] #
PrintDot BrewerScheme # |
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 # |
Methods minBound :: BrewerName # maxBound :: BrewerName #
Enum BrewerName # |
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 # |
Methods (==) :: BrewerName -> BrewerName -> Bool # (/=) :: BrewerName -> BrewerName -> Bool #
Ord BrewerName # |
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 # |
Methods readsPrec :: Int -> ReadS BrewerName # readList :: ReadS [BrewerName] # readPrec :: ReadPrec BrewerName # readListPrec :: ReadPrec [BrewerName] #
Show BrewerName # |
Methods showsPrec :: Int -> BrewerName -> ShowS # show :: BrewerName -> String # showList :: [BrewerName] -> ShowS #
ParseDot BrewerName # |
Methods parseUnqt :: Parse BrewerName # parse :: Parse BrewerName # parseUnqtList :: Parse [BrewerName] # parseList :: Parse [BrewerName] #
PrintDot BrewerName # |
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 # |
Methods (==) :: BrewerColor -> BrewerColor -> Bool # (/=) :: BrewerColor -> BrewerColor -> Bool #
Ord BrewerColor # |
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 # |
Methods readsPrec :: Int -> ReadS BrewerColor # readList :: ReadS [BrewerColor] # readPrec :: ReadPrec BrewerColor # readListPrec :: ReadPrec [BrewerColor] #
Show BrewerColor # |
Methods showsPrec :: Int -> BrewerColor -> ShowS # show :: BrewerColor -> String # showList :: [BrewerColor] -> ShowS #
NamedColor BrewerColor # |
Methods colorScheme :: BrewerColor -> ColorScheme toColor :: BrewerColor -> Color # printNC :: Bool -> BrewerColor -> DotCode parseNC' :: Bool -> Parse BrewerColor