8 - Using Callables
Callables allow you to define your own functions for calculating a few of the style properties for stars: size, opacity, color, and their labels. DSOs support callables for opacity and labels only. Starplot has a few basic callables built-in, but you can also create your own.
Here's an example that uses the built-in callable color_by_bv_gradient to create a horizon plot that colorizes each star with a radial gradient based on its B-V index — a bright core that fades out toward the edge, similar to how stars actually look to the eye:
For more details on using callables and an example of how to create your own, check out the reference page.
In the next section, we'll learn where to go from here...