Scales#
Column-wise scales for ipyforcegraph.
Some documentation provided by: - d3-scale-chromatic
- class ipyforcegraph.behaviors.scales.ContinuousColor(value, **kwargs)[source]#
Bases:
ColumnA column which will interpolate a numeric column on a color scale.
Public constructor
- class Scheme(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
EnumContinuous color schemes exported by
d3-scale-chromatic- blues = 'Blues'#
- brbg = 'BrBG'#
- bugn = 'BuGn'#
- bupu = 'BuPu'#
- cividis = 'Cividis'#
- cool = 'Cool'#
- cubehelixdefault = 'CubehelixDefault'#
- gnbu = 'GnBu'#
- greens = 'Greens'#
- greys = 'Greys'#
- inferno = 'Inferno'#
- magma = 'Magma'#
- oranges = 'Oranges'#
- orrd = 'OrRd'#
- piyg = 'PiYG'#
- plasma = 'Plasma'#
- prgn = 'PRGn'#
- pubu = 'PuBu'#
- pubugn = 'PuBuGn'#
- puor = 'PuOr'#
- purd = 'PuRd'#
- purples = 'Purples'#
- rainbow = 'Rainbow'#
- rdbu = 'RdBu'#
- rdgy = 'RdGy'#
- rdpu = 'RdPu'#
- rdylbu = 'RdYlBu'#
- rdylgn = 'RdYlGn'#
- reds = 'Reds'#
- sinebow = 'Sinebow'#
- spectral = 'Spectral'#
- turbo = 'Turbo'#
- viridis = 'Viridis'#
- warm = 'Warm'#
- ylgn = 'YlGn'#
- ylgnbu = 'YlGnBu'#
- ylorbr = 'YlOrBr'#
- ylorrd = 'YlOrRd'#
- domain TypedTuple()#
the
[min, max]to map to the scale’s colors
- scheme Enum(None)#
name of a continuous
d3-scale-chromaticscheme
- class ipyforcegraph.behaviors.scales.OrdinalColor(value, **kwargs)[source]#
Bases:
ColumnA column which will encode a column on an discrete color scale.
Public constructor
- class Scheme(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
EnumOrdinal color schemes exported by
d3-scale-chromatic- accent Enum(None)#
- category10 Enum(None)#
- dark2 Enum(None)#
- paired Enum(None)#
- pastel1 Enum(None)#
- pastel2 Enum(None)#
- set1 Enum(None)#
- set2 Enum(None)#
- set3 Enum(None)#
- tableau10 Enum(None)#
- domain Tuple()#
values mapped to ordinal colors in the range
- range TypedTuple()#
the colors available in a scheme (overloaded by
scheme)
- scheme Enum(None)#
name of an ordinal
d3-scale-chromaticscheme