ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Palette.YLORRD9Palette Class Reference
Collaboration diagram for Palette.YLORRD9Palette:

Public Member Functions

 __init__ (self, qerror_min, qerror_max)
 
- Public Member Functions inherited from Palette.Palette
 colorscheme (self)
 

Additional Inherited Members

- Protected Attributes inherited from Palette.UniformPalette
 _colors
 
 _slots
 
- Protected Attributes inherited from Palette.Palette
 _slots
 
 _colors
 

Detailed Description

Definition at line 60 of file Palette.py.

Constructor & Destructor Documentation

◆ __init__()

Palette.YLORRD9Palette.__init__ (   self,
  qerror_min,
  qerror_max 
)

Reimplemented from Palette.UniformPalette.

Definition at line 61 of file Palette.py.

61 def __init__(self, qerror_min, qerror_max):
62 if qerror_min >= qerror_max:
63 raise RuntimeError('min must be less than max')
64
65 # From https://colorbrewer2.org/#type=sequential&scheme=YlOrRd&n=9
66 colors = [
67 "#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c",
68 "#bd0026", "#800026"
69 ]
70 super().__init__(qerror_min, qerror_max, colors)

References Palette.YLORRD9Palette.__init__().

Referenced by Palette.YLORRD9Palette.__init__().


The documentation for this class was generated from the following file: