hari_plotter.color_scheme module

class hari_plotter.color_scheme.ColorScheme(interface: Interface | None = None)[source]

Bases: object

class MethodLogger[source]

Bases: object

copy() MethodLogger[source]
keys() list[str][source]
apply_changes(changes)[source]
available_colormaps = ['magma', 'inferno', 'plasma', 'viridis', 'cividis', 'twilight', 'twilight_shifted', 'turbo', 'Blues', 'BrBG', 'BuGn', 'BuPu', 'CMRmap', 'GnBu', 'Greens', 'Greys', 'OrRd', 'Oranges', 'PRGn', 'PiYG', 'PuBu', 'PuBuGn', 'PuOr', 'PuRd', 'Purples', 'RdBu', 'RdGy', 'RdPu', 'RdYlBu', 'RdYlGn', 'Reds', 'Spectral', 'Wistia', 'YlGn', 'YlGnBu', 'YlOrBr', 'YlOrRd', 'afmhot', 'autumn', 'binary', 'bone', 'brg', 'bwr', 'cool', 'coolwarm', 'copper', 'cubehelix', 'flag', 'gist_earth', 'gist_gray', 'gist_heat', 'gist_ncar', 'gist_rainbow', 'gist_stern', 'gist_yarg', 'gnuplot', 'gnuplot2', 'gray', 'hot', 'hsv', 'jet', 'nipy_spectral', 'ocean', 'pink', 'prism', 'rainbow', 'seismic', 'spring', 'summer', 'terrain', 'winter', 'Accent', 'Dark2', 'Paired', 'Pastel1', 'Pastel2', 'Set1', 'Set2', 'Set3', 'tab10', 'tab20', 'tab20b', 'tab20c', 'grey', 'gist_grey', 'gist_yerg', 'Grays', 'magma_r', 'inferno_r', 'plasma_r', 'viridis_r', 'cividis_r', 'twilight_r', 'twilight_shifted_r', 'turbo_r', 'Blues_r', 'BrBG_r', 'BuGn_r', 'BuPu_r', 'CMRmap_r', 'GnBu_r', 'Greens_r', 'Greys_r', 'OrRd_r', 'Oranges_r', 'PRGn_r', 'PiYG_r', 'PuBu_r', 'PuBuGn_r', 'PuOr_r', 'PuRd_r', 'Purples_r', 'RdBu_r', 'RdGy_r', 'RdPu_r', 'RdYlBu_r', 'RdYlGn_r', 'Reds_r', 'Spectral_r', 'Wistia_r', 'YlGn_r', 'YlGnBu_r', 'YlOrBr_r', 'YlOrRd_r', 'afmhot_r', 'autumn_r', 'binary_r', 'bone_r', 'brg_r', 'bwr_r', 'cool_r', 'coolwarm_r', 'copper_r', 'cubehelix_r', 'flag_r', 'gist_earth_r', 'gist_gray_r', 'gist_heat_r', 'gist_ncar_r', 'gist_rainbow_r', 'gist_stern_r', 'gist_yarg_r', 'gnuplot_r', 'gnuplot2_r', 'gray_r', 'hot_r', 'hsv_r', 'jet_r', 'nipy_spectral_r', 'ocean_r', 'pink_r', 'prism_r', 'rainbow_r', 'seismic_r', 'spring_r', 'summer_r', 'terrain_r', 'winter_r', 'Accent_r', 'Dark2_r', 'Paired_r', 'Pastel1_r', 'Pastel2_r', 'Set1_r', 'Set2_r', 'Set3_r', 'tab10_r', 'tab20_r', 'tab20b_r', 'tab20c_r']
available_markers = ['.', ',', 'o', 'v', '^', '<', '>', '1', '2', '3', '4', '8', 's', 'p', '*', 'h', 'H', '+', 'x', 'D', 'd', '|', '_', 'P', 'X', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 'None', 'none', ' ', '']
centroid_colors(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list | list[list][source]
centroid_markers(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
clear() None[source]
cluster_line_colors(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list | list[list][source]
colorbar(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict[str, Any] | None = None) Colormap[source]
copy()[source]
default_centroid_color = (1, 0, 0, 1)
default_centroid_marker = '*'
default_colormap = <matplotlib.colors.LinearSegmentedColormap object>
default_colormap_name = 'coolwarm'
default_distribution_color = (0.2298057, 0.298717966, 0.753683153, 1.0)
default_line_color = (0, 0, 0, 1)
default_line_linestyle = '-'
default_markers = ('o', 'X', '<', '>', '^', 'v', '4', '*', '+', 'D', 'H', 'P', 'd', 'h', 'p', 's', '_', '|', ',', '.')
default_none_color = (0, 1, 0, 1)
default_none_marker = 'x'
default_scatter_color = (0.2298057, 0.298717966, 0.753683153, 1.0)
default_scatter_marker = 'o'
default_timeline_color = (0.5019607843137255, 0.5019607843137255, 0.5019607843137255, 1)
default_timeline_linestyle = '--'
distribution_color(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
fill_colors(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list | list[list][source]
get_cluster_color(clustering_settings: dict[str, Any], colormap: str, none_color: str) dict[source]
get_cluster_marker(clustering_settings: dict[str, Any], none_marker: str) dict[source]
get_cluster_node_color(image: int, clustering_settings: dict[str, Any], colormap: str, none_color: str) dict[source]
get_cluster_node_marker(image: int, clustering_settings: dict[str, Any], none_marker: str) dict[source]
get_image(settings, group_number: int) int[source]
get_parameter_based_cluster_color(parameter: str, clustering_settings: dict[str, Any], colormap: str, none_color: str) dict[source]
get_parameter_based_cluster_node_color(image: int, parameter: str, clustering_settings: dict[str, Any], colormap: str, none_color: str) dict[source]
graph_line_color(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]

Graph parameters functions list can be accessed in Group.common_functions.keys()

line_color(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
line_linestyle(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
method_logger = <hari_plotter.color_scheme.ColorScheme.MethodLogger object>
property methods: list

Returns a list of property names that have been registered.

new_interface(interface: Interface) ColorScheme[source]
static request_to_tuple(request) tuple[source]
requires_tracking(settings) bool | dict[source]
scatter_colors_nodes(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list | list[list][source]
scatter_markers_nodes(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
timeline_color(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
timeline_linestyle(nodes: list[tuple[int]] | None = None, clusters: list[str] | None = None, group_number: int | None = None, mode: str | None = None, settings: dict | None = None) str | list[str][source]
variation(changes)[source]
hari_plotter.color_scheme.anything_to_rgba(color) tuple[float][source]
hari_plotter.color_scheme.initialize_colormap(colormap: str | dict[str, Any]) tuple[str, Colormap][source]

Returns colormap name and colormap Example: initialize_colormap( { “Name”: “custom1”, “Colors”: [

(255 / 255, 79 / 255, 20 / 255), (1 / 255, 180 / 255, 155 / 255), (71 / 255, 71 / 255, 240 / 255),

], }