diff --git a/postprocessing.py b/postprocessing.py index 827194e..705b582 100644 --- a/postprocessing.py +++ b/postprocessing.py @@ -98,16 +98,17 @@ def plot_storages_invest(res=None, es=None): plt.show() -def plot_invest(res=None, es=None): +def plot_invest(res=None, om=None): + # Zeige alle Investment Flows l_invest = [] p_invest = [] inv_flows = om.InvestmentFlow.invest._data list_flows = [k for k in inv_flows] - filter=[] - t1=[] - t2=[] + filter = [] + t1 = [] + t2 = [] # Check for Type for n in range(len(list_flows)): @@ -135,22 +136,15 @@ def plot_invest(res=None, es=None): # plot the installed Capacities y = p_invest x = l_invest - width = 1/2 + width = 2/3 plt.bar(x, y, width, color="blue") plt.ylabel('Inst. Leistung [kW] / Inst. Kapazität [kWh]') + plt.xlabel('Investierte Technologie') + plt.title('Alle getaetigten Investitionen') + plt.xticks(rotation=45) plt.show() - - - - - - - - - - def export_excel(res=None, es=None): l_buses = []