def save_barplot_power(f, figdir, name=None): if name is None: name = 'bars_power.png' production = analysis.get_production(f, Resources.power) plotdata = production.sum(axis=0) / 1e3 visualization.save_barplot_fig(plotdata, fig_path(figdir, name), title=u'Power supply [GWh/year]')
def save_duration_heat(f, figdir, name=None): if name is None: name = 'duration_heat.png' path = fig_path(figdir, name) title = 'Simulated' production = analysis.get_production(f, Resources.heat) aggregated = datautil.aggregate_columns(production, HEAT_PROD_AGGREGATES) visualization.save_duration_fig(aggregated, path, title=title)
def save_barplot_heat(f, figdir, name=None): if name is None: name = 'bars_heat.png' production = analysis.get_production(f, Resources.heat) aggregated = datautil.aggregate_columns(production, HEAT_PROD_AGGREGATES) plotdata = aggregated.sum(axis=0) / 1e3 visualization.save_barplot_fig(plotdata, fig_path(figdir, name), title=u'District heating supply [GWh/year]')
def save_barplot_power(f, figdir, name=None): if name is None: name = 'bars_power.png' production = analysis.get_production(f, Resources.power) plotdata = production.sum(axis=0) / 1e3 visualization.save_barplot_fig( plotdata, fig_path(figdir, name), title=u'Power supply [GWh/year]')
def save_barplot_heat(f, figdir, name=None): if name is None: name = 'bars_heat.png' production = analysis.get_production(f, Resources.heat) aggregated = datautil.aggregate_columns(production, HEAT_PROD_AGGREGATES) plotdata = aggregated.sum(axis=0)/1e3 visualization.save_barplot_fig( plotdata, fig_path(figdir, name), title=u'District heating supply [GWh/year]')
def save_stackplot_power(f, figdir, name=None): if name is None: name = 'stacked_power.png' title = 'Power supply [MW]' production = analysis.get_production(f, Resources.power) visualization.save_stackplot_fig( production, fig_path(figdir, name), hatch_colors=[d['fg'] for d in COLOR_PAIR_CYCLE], hatches=HATCH_CYCLE, title=title)
def save_stackplot_heat(f, figdir, name=None): if name is None: name = 'stacked_heat.png' title = 'Heat supply [MW] - Simulated' path = fig_path(figdir, name) production = analysis.get_production(f, Resources.heat) aggregated = datautil.aggregate_columns(production, HEAT_PROD_AGGREGATES) visualization.save_stackplot_fig( aggregated, fig_path(figdir, name), hatch_colors=[d['fg'] for d in COLOR_PAIR_CYCLE], hatches=HATCH_CYCLE, title=title)
def save_duration_power(f, figdir, name=None): if name is None: name = 'duration_power.png' production = analysis.get_production(f, Resources.power) visualization.save_duration_fig(production, fig_path(figdir, name))