python-igraph API reference

List of all classes, functions and methods in python-igraph

class documentation

class PrecalculatedPalette(Palette):

Known subclasses: igraph.drawing.colors.ClusterColoringPalette

View In Hierarchy

A palette that returns colors from a pre-calculated list of colors

Method __init__ No summary
Method _get This method will only be called if the requested color index is outside the size of the palette. In that case, we throw an exception

Inherited from Palette:

Method clear_cache Clears the result cache.
Method get Returns the given color from the palette.
Method get_many Returns multiple colors from the palette.
Property length Returns the number of colors in this palette
Method __len__ Returns the number of colors in this palette
Method __plot__ Plots the colors of the palette on the given Cairo context
Method __repr__ Undocumented
Instance Variable _length Undocumented
Instance Variable _cache Undocumented
def __init__(self, items):

Creates the palette backed by the given list. The list must contain RGBA quadruplets or color names, which will be resolved first by color_name_to_rgba(). Anything that is understood by color_name_to_rgba() is OK here.

def _get(self, v):

This method will only be called if the requested color index is outside the size of the palette. In that case, we throw an exception

API Documentation for igraph, generated by pydoctor 21.2.2.