Esempio n. 1
0
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]')
Esempio n. 2
0
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)
Esempio n. 3
0
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]')
Esempio n. 4
0
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)
Esempio n. 5
0
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]')
Esempio n. 6
0
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]')
Esempio n. 7
0
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)
Esempio n. 8
0
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)
Esempio n. 9
0
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)
Esempio n. 10
0
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)
Esempio n. 11
0
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))
Esempio n. 12
0
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))