module graphhelper._colormap
¶
Short summary¶
module pyensae.graphhelper._colormap
CorrPlot functionalities.
It comes from corrplot.py which I copied here because the module does not properly work on Python 3 (import issues). See also biokit license.
- author:
Thomas Cokelaer
- references:
http://cran.r-project.org/web/packages/corrplot/vignettes/corrplot-intro.html
Classes¶
class |
truncated documentation |
---|---|
Lists of known colors. |
|
Snippets of code from colormap/colors.py, … |
Functions¶
function |
truncated documentation |
---|---|
Returns a colormap object compatible with matplotlib If only parameter name is provided, it should be a known matplotlib … |
Properties¶
property |
truncated documentation |
---|---|
|
|
|
Methods¶
method |
truncated documentation |
---|---|
Returns a colormap object to be used within matplotlib |
|
Provides 3 colors in format accepted by |
|
Converts a string like |
Documentation¶
CorrPlot functionalities.
It comes from corrplot.py which I copied here because the module does not properly work on Python 3 (import issues). See also biokit license.
- author:
Thomas Cokelaer
- references:
http://cran.r-project.org/web/packages/corrplot/vignettes/corrplot-intro.html
- class pyensae.graphhelper._colormap.Color(name)¶
Bases:
object
Lists of known colors.
- Parameters:
name – hexadecimal or name
- __init__(name)¶
- Parameters:
name – hexadecimal or name
- set_hex(name)¶
Converts a string like
#AABBCC
into (red, green, blue).
- class pyensae.graphhelper._colormap.Colormap¶
Bases:
object
Snippets of code from colormap/colors.py, LICENSE.
- _get_colormap_mpl()¶
- _get_diverging_black()¶
- cmap(colors=None, reverse=False, N=256)¶
Returns a colormap object to be used within matplotlib :param dict colors: a dictionary that defines the RGB colors to be
used in the colormap. See
get_cmap_heat()
for an example.- Parameters:
- pyensae.graphhelper._colormap.cmap_builder(name, name2=None, name3=None)¶
Returns a colormap object compatible with matplotlib If only parameter name is provided, it should be a known matplotlib colormap name (e.g., jet). If name2 is provided, then a new colormap is created going from the color name to the color name2 with a linear scale. Finally, if name3 is provided, a linear scaled colormap is built from color name to color name3 with the intermediate color being the name2. Matplotlib colormap map names Source: colormap/get_cmap.py, LICENSE).