(('electricity_2', 'excess_bel_2'), 'flow'): '#f22222', (('fixed_chp_gas_2', 'heat_2'), 'flow'): '#20b4b6'} fig = plt.figure(figsize=(18, 9)) plt.rc('legend', **{'fontsize': 13}) plt.rcParams.update({'font.size': 13}) fig.subplots_adjust(left=0.07, bottom=0.12, right=0.86, top=0.93, wspace=0.03, hspace=0.2) # subplot of electricity bus (fixed chp) [1] electricity_2 = outputlib.views.node(results, 'electricity_2') x_length = len(electricity_2['sequences'].index) myplot = oeplot.io_plot( bus_label='electricity_2', df=electricity_2['sequences'], cdict=cdict, smooth=smooth_plot, line_kwa={'linewidth': 4}, ax=fig.add_subplot(3, 2, 1), inorder=[(('fixed_chp_gas_2', 'electricity_2'), 'flow')], outorder=[(('electricity_2', 'demand_el_2'), 'flow'), (('electricity_2', 'excess_bel_2'), 'flow')]) myplot['ax'].set_ylabel('Power in MW') myplot['ax'].set_xlabel('') myplot['ax'].get_xaxis().set_visible(False) myplot['ax'].set_xlim(0, x_length) myplot['ax'].set_title("Electricity output (fixed chp)") myplot['ax'].legend_.remove() # subplot of electricity bus (variable chp) [2] electricity = outputlib.views.node(results, 'electricity') myplot = oeplot.io_plot( bus_label='electricity', df=electricity['sequences'], cdict=cdict, smooth=smooth_plot,
bottom=0.12, right=0.86, top=0.93, wspace=0.03, hspace=0.2) # subplot of electricity bus (fixed chp) [1] electricity_2 = solph.views.node(results, "electricity_2") x_length = len(electricity_2["sequences"].index) myplot = oeplot.io_plot( bus_label="electricity_2", df=electricity_2["sequences"], cdict=cdict, smooth=smooth_plot, line_kwa={"linewidth": 4}, ax=fig.add_subplot(3, 2, 1), inorder=[(("fixed_chp_gas_2", "electricity_2"), "flow")], outorder=[ (("electricity_2", "demand_el_2"), "flow"), (("electricity_2", "excess_bel_2"), "flow"), ], ) myplot["ax"].set_ylabel("Power in MW") myplot["ax"].set_xlabel("") myplot["ax"].get_xaxis().set_visible(False) myplot["ax"].set_xlim(0, x_length) myplot["ax"].set_title("Electricity output (fixed chp)") myplot["ax"].legend_.remove() # subplot of electricity bus (variable chp) [2] electricity = solph.views.node(results, "electricity")