How do people package Altair themes?

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • altair-latimes

    A Los Angeles Times theme for Python's Altair statistical visualization library

  • As a first example, we have the altair-latimes package. Here we can find the Los Angeles Times theme for Altair. More specifically, in addition to the theme() function that contains some constants and returns a dictionary with the configuration for the theme, there is a color dictionary (palette). This color dictionary can also be imported and used directly.

  • husky-altair-theme

    husky_theme, a theme for Altair charts based on the University of Washington branding guidelines

  • For a theme based on the University of Washington brand, there is husky_theme. To leverage it, we need to run the respective file as a script or add it to a given project (and import the husky_theme() function), as opposed to installing and importing a Python package. Like the first example, the husky_theme() function contains some constants and returns a dictionary.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • hueniversitypy

  • In the hueniversitypy (great name!) package, we can find different themes based on the visual identities of Canadian universities. Each theme is defined in its file, similar to the previous examples (a function with some constants and which returns a dictionary). The main difference between this package and the previous examples is that it brings together more than one theme that can be used separately (instead of being dedicated to a single theme).

  • styles

    plotting styles for altair and matplotlib (by carbonplan)

  • To use any of the themes available in the three examples mentioned above globally, we need to alt.themes.register() and alt.themes.enable() them. In the case of the carbonplan-styles package, which provides a light theme and a dark theme for Altair and Matplotlib, we just need to enable the theme (and we don't need to import any extras). In other words, there is no need to register the theme, as it is added to the available themes "automatically" from the entry points defined in the setup.py file (or equivalent):

  • cheatsheets

    Official Matplotlib cheat sheets (by matplotlib)

  • To use any of the themes available in the three examples mentioned above globally, we need to alt.themes.register() and alt.themes.enable() them. In the case of the carbonplan-styles package, which provides a light theme and a dark theme for Altair and Matplotlib, we just need to enable the theme (and we don't need to import any extras). In other words, there is no need to register the theme, as it is added to the available themes "automatically" from the entry points defined in the setup.py file (or equivalent):

  • Altair

    Declarative statistical visualization library for Python

  • In Altair, we can create custom and shareable themes to apply to different charts. So, several Python packages are available with these themes ready to go. Considering four examples, let's see how other people package their Altair themes. For more information before we talk about them, check the Altair Themes section available in the documentation.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Suggestions for Udemy, Coursera, DataCamp, Pluralsight courses for Pandas and Visualization? So many options out there...project-based ones would be ideal. Or the ones to avoid or overrated courses?

    2 projects | /r/Python | 3 Mar 2023
  • Pandas Free Online Tutorial In Python — Learn Pandas Basics In 5 Lessons!

    3 projects | /r/BigDataETL | 2 Mar 2023
  • Best tools for good looking tables and piecharts

    4 projects | /r/pythontips | 19 Jan 2023
  • [OC] Flossing was one of my New Year's resolutions for 2022

    2 projects | /r/dataisbeautiful | 16 Jan 2023
  • Как сделать визуализацию?

    2 projects | /r/PikabuStatistics | 30 Dec 2022