bokeh.colors.Color

This is the base class representing the color objects. The methods in this class are :

  • clamp()
  • copy()
  • darken()
  • from_hsl()
  • from_rgb()
  • lighten()
  • to_css()
  • to_hsl()
  • to_rgb()

Python Bokeh – Colors Class

Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.

In this article, we will learn about colors in Bokeh. There are 5 different classes for colors in Bokeh :

  1. bokeh.colors.Color
  2. bokeh.colors.HSL
  3. bokeh.colors.RGB
  4. bokeh.colors.groups
  5. bokeh.colors.names

Similar Reads

bokeh.colors.Color

This is the base class representing the color objects. The methods in this class are :...

bokeh.colors.HSL

This provides a class to represent colors with HSL format, i.e. Hue, Value and Lightness....

bokeh.colors.RGB

...

bokeh.colors.groups

...

bokeh.colors.named

...