-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #39
- Loading branch information
Showing
44 changed files
with
1,963 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from ._colormaps._colormap import ColorMap, ColorMapKind | ||
from ._colormaps._cubehelix import CubeHelixMap | ||
from ._colormaps._interpolated import InterpolatedMap | ||
from ._colormaps._listed import ListedMap | ||
from ._colormaps._segment_function import SegmentFunctionMap | ||
from ._colormaps._segment_interpolated import SegmentInterpolatedMap | ||
from .hsluv import hex_to_rgb, rgb_to_hex | ||
from .named_colors import get_colormap, get_named_color | ||
|
||
__all__ = ( | ||
"ColorMap", | ||
"ColorMapKind", | ||
"CubeHelixMap", | ||
"InterpolatedMap", | ||
"ListedMap", | ||
"SegmentFunctionMap", | ||
"SegmentInterpolatedMap", | ||
"get_colormap", | ||
"get_named_color", | ||
"hex_to_rgb", | ||
"rgb_to_hex", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from ._colormap import ColorMap | ||
from ._cubehelix import CubeHelixMap | ||
from ._interpolated import InterpolatedMap | ||
from ._listed import ListedMap | ||
from ._palette_interpolated import PaletteInterpolatedMap | ||
from ._segment_function import SegmentFunctionMap | ||
from ._segment_interpolated import SegmentInterpolatedMap | ||
|
||
__all__ = ( | ||
"ColorMap", | ||
"CubeHelixMap", | ||
"InterpolatedMap", | ||
"ListedMap", | ||
"PaletteInterpolatedMap", | ||
"SegmentFunctionMap", | ||
"SegmentInterpolatedMap", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
from mizani._colors import ColorMapKind as cmk | ||
from mizani._colors import InterpolatedMap | ||
|
||
__all__ = ( | ||
# diverging | ||
"bwr", | ||
"seismic", | ||
# miscellaneous | ||
"gist_rainbow", | ||
"terrain", | ||
) | ||
|
||
|
||
seismic = InterpolatedMap( | ||
colors=( | ||
(0.0, 0.0, 0.3), | ||
(0.0, 0.0, 1.0), | ||
(1.0, 1.0, 1.0), | ||
(1.0, 0.0, 0.0), | ||
(0.5, 0.0, 0.0), | ||
), | ||
kind=cmk.diverging, | ||
) | ||
|
||
bwr = InterpolatedMap( | ||
colors=( | ||
(0.0, 0.0, 1.0), | ||
(1.0, 1.0, 1.0), | ||
(1.0, 0.0, 0.0), | ||
), | ||
kind=cmk.diverging, | ||
) | ||
|
||
|
||
gist_rainbow = InterpolatedMap( | ||
colors=( | ||
(1.00, 0.00, 0.16), | ||
(1.00, 0.00, 0.00), | ||
(1.00, 1.00, 0.00), | ||
(0.00, 1.00, 0.00), | ||
(0.00, 1.00, 1.00), | ||
(0.00, 0.00, 1.00), | ||
(1.00, 0.00, 1.00), | ||
(1.00, 0.00, 0.75), | ||
), | ||
values=(0.000, 0.030, 0.215, 0.400, 0.586, 0.770, 0.954, 1.000), | ||
) | ||
|
||
terrain = InterpolatedMap( | ||
colors=( | ||
(0.2, 0.2, 0.6), | ||
(0.0, 0.6, 1.0), | ||
(0.0, 0.8, 0.4), | ||
(1.0, 1.0, 0.6), | ||
(0.5, 0.36, 0.33), | ||
(1.0, 1.0, 1.0), | ||
), | ||
values=(0.00, 0.15, 0.25, 0.50, 0.75, 1.00), | ||
) |
Oops, something went wrong.