chemicalchecker.util.plot.multiccplot.MultiCCPlot

class MultiCCPlot(chemcheckers, names, plot_path, limit_dataset=None)[source]

Bases: object

MultiCCPlot class.

Produce Chemical Checker plots using multiple datasets.

Initialize a MultiCCPlot instance.

Parameters:
  • chemcheckers (list) – List of CC instances.

  • names (list) – List of CC instances names.

  • plot_path (str) – Destination folder for plot images.

  • limit_dataset (list) – Limit plot to these datasets. If None all datasets are used.

Methods

cc_palette

Return a list of colors a.k.a.

cmap_discretize

Return a discrete colormap from the continuous colormap cmap.

sign2_node2vec_stats

Plot the stats for sign2.

cc_palette(coords)[source]

Return a list of colors a.k.a. a palette.

cmap_discretize(cmap, N)[source]

Return a discrete colormap from the continuous colormap cmap.

cmap: colormap instance, eg. cm.jet. N: number of colors.

Example

x = resize(arange(100), (5,100)) djet = cmap_discretize(cm.jet, 5) imshow(x, cmap=djet)

sign2_node2vec_stats()[source]

Plot the stats for sign2.