Plot types - BHoM/LadybugTools_Toolkit GitHub Wiki

This page is a WIP of plot types and examples. Plots are in active development and this page may quickly become out of date.

Python files related to plots are available under C:\ProgramData\BHoM\Extensions\PythonCode\LadybugTools_Toolkit\src\ladybugtools_toolkit\plot

Axes and figures

Some plot types return an axis object rather than a figure object. This provides more flexibility as multiple axes can now be added to the same figure.

To set up a figure with a single axis:

import matplotlib.pyplot as plt
from ladybugtools_toolkit.plot import utci_journey

fig, ax = plt.subplots(1, 1, figsize=(10,3))
utci_journey([23,34,12], ax=ax)

This sets up a figure with a single subplot (the 1, 1 means 1 subplot along and 1 subplot down), sets its size, and adds a utci_journey to the figure.