You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
James Ramsden edited this page Feb 12, 2024
·
42 revisions
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.