SBColorSchemePerOccupancy#

This class describes a color scheme based on atoms’ occupancy.

Please refer to samson.SBNodeColorScheme.

See also

SAMSON SDK: SBDColorSchemePerOccupancy

class samson.SBColorSchemePerOccupancy(*args, **kwargs)#

Bases: SBColorSchemePerAttribute_dimensionless

This class describes a color scheme based on atoms’ occupancy.

Overloaded function.

  1. __init__(self: samson.SBColorSchemePerOccupancy) -> None

  2. __init__(self: samson.SBColorSchemePerOccupancy, nodeIndexer: samson.SBNodeIndexer, colorPalette: samson.SBPalette = None) -> None

Constructs color scheme for nodeIndexer with the given colorPalette.

Parameters:
  • nodeIndexer (samson.SBNodeIndexer) – A indexer of nodes to which the color scheme is applied

  • colorPalette (samson.SBPalette, default=None) –

    A color palette.

    If None, then the default color palette associated with this color scheme will be used.