mosaicmpi.Colors

Contents

mosaicmpi.Colors#

class mosaicmpi.Colors(metadata_colors: dict | None = {}, metadata_colors_group: dict | None = {}, dataset_colors: dict | None = {}, community_colors: dict | None = {}, missing_data_color: str = '#dddddd')#

Attributes

Methods

add_missing_community_colors(network[, ...])

add_missing_dataset_colors(datasets[, ...])

add_missing_metadata_colors(datasets[, ...])

Identify missing colors based on metadata.

from_config(config)

from_dataset(dataset[, pastel_factor, ...])

from_integration(integration[, ...])

from_named_datasets(datasets[, ...])

from_network(network[, pastel_factor, ...])

from_toml(toml_file)

get_metadata_colors(layer)

plot_community_colors_legend([figsize, ax])

plot_dataset_colors_legend([figsize, ax])

plot_metadata_colors_legend([layer, ax, ...])

reset_community_colors(network[, ...])

to_toml(toml_file)