From ec8f923daabb9233caf5f1a290d6d9a8755eaeb3 Mon Sep 17 00:00:00 2001 From: beierd Date: Fri, 5 Jul 2019 16:23:49 +0200 Subject: [PATCH] minor changes --- postprocessing.py | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) 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 = []