UrbanHeatPro.Functions.plot
plot.py A. Molar-Cruz @ TUM ENS
Module Contents
Functions
|
Plots timeseries as steps |
|
Plots timeseries as steps |
|
Plots simple histogram |
|
Plots a histogram showing the values of the thermal properties for all buildings in |
|
Shows a figure with two tables: |
|
Figures: calculation of typical days |
- UrbanHeatPro.Functions.plot.plot_timeseries(dt_vector, timeseries, legend, fig_name, xticks=('month', 3), ynumticks='auto', ylabel='Power [kW]', ylim0=True, yfactor=1000.0)[source]
Plots timeseries as steps
- Parameters:
dt_vector (list) – list of datetime objects
timeseries (list) – timeseries to plot [ts1, ts2, ts3]
legend (list) – list of legends [leg1, leg2, leg3]
fig_name (string) – figure name
xticks (tuple) – Every X months/days/hours. Possible values: (‘month’, X), (‘day’, X), (‘hour’, X)
ynumticks –
ylabel –
ylim0 –
yfactor –
- UrbanHeatPro.Functions.plot.plot_stacked_timeseries(dt_vector, timeseries, legend, fig_name, xticks=('month', 3), ynumticks='auto', ylabel='Power [kW]', ylim0=True, yfactor=1000.0)[source]
Plots timeseries as steps
- Parameters:
dt_vector (list) – list of datetime objects
timeseries (list) – timeseries to stack [ts1, ts2]
legend (list) – list of legends [leg1, leg2, leg3]
fig_name (string) – figure name
xticks (tuple) – Every X months/days/hours. Possible values: (‘month’, X), (‘day’, X), (‘hour’, X)
ynumticks –
ylabel –
ylim0 –
yfactor –
- UrbanHeatPro.Functions.plot.plot_histogram(values, ylabel, fig_name, factor=1000.0, statistics=[])[source]
Plots simple histogram
- UrbanHeatPro.Functions.plot.plot_histogram_table(use, thermal_property, title, fig_name, factor=1000.0, statistics=[], figsize=(30, 25))[source]
Plots a histogram showing the values of the thermal properties for all buildings in the city (only residential). A histogram per year construction class and building type is shown.
- UrbanHeatPro.Functions.plot.plot_imshow_comparison(use, sim_stock, stat_stock, fig_name, cmap='RdBu')[source]
- Shows a figure with two tables:
- Left The distribution of residential buildings in the diff categories (year_class, btype)
according to the statistics used to generate the synthetic building stock
- Right The distribution of residential buildings in the diff categories (year_class, btype)
in the synthetic building stock