UrbanHeatPro.Functions.plot

plot.py A. Molar-Cruz @ TUM ENS

Module Contents

Functions

plot_timeseries(dt_vector, timeseries, legend, fig_name)

Plots timeseries as steps

plot_stacked_timeseries(dt_vector, timeseries, legend, ...)

Plots timeseries as steps

plot_histogram(values, ylabel, fig_name[, factor, ...])

Plots simple histogram

plot_histogram_table(use, thermal_property, title, ...)

Plots a histogram showing the values of the thermal properties for all buildings in

plot_imshow_comparison(use, sim_stock, stat_stock, ...)

Shows a figure with two tables:

plot_typical_days(days_in_year, data_in_days, Z, ...)

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

UrbanHeatPro.Functions.plot.plot_typical_days(days_in_year, data_in_days, Z, number_of_clusters, min_distance_day, avg_day, clusters, clusters_per_month, month_names, timeseries_min, timeseries_avg, result_dir)[source]

Figures: calculation of typical days