Create a Simple Chart
In this section, we will see how you can visualize the yearly dry bulb temperature data from an EPW as a Plotly chart in a Pollination app. We're using the ladybug-charts library of Ladybug Tools to to create this chart here. This library can help you create, ladybug monthly charts, daily charts, sun path, wind rose, pyschrometric chart, and more.
Install the following libraries first
pip install ladybug-charts streamlit
Start by importing the libraries
import streamlit as st
from ladybug.epw import EPW
Set the title of the page and layout
page_title='Dry bulb temperature', layout='wide'
Create an EPW object from an EPW file and then get the
heatmapfigure. This method returns a Plotly figure with the dry bulb temperature data.
epw = EPW("file path to epw file")
figure = epw.dry_bulb_temperature.heat_map()
Finally, add the title to the page and visualize dry bulb temperature as a Plotly chart.
You should see an annual heatmap appear in the Streamlit app.