Python Forum
Help me about the load_distribution, network.plot .... - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Help me about the load_distribution, network.plot .... (/thread-8177.html)



Help me about the load_distribution, network.plot .... - hoangtuyen - Feb-08-2018

I'm a beginner. Can you help me to explain what the codes mean? Thank you very much.

fig,ax = plt.subplots(1,1)
fig.set_size_inches(6,12)
load_distribution = network.loads_t.p_set.loc[network.snapshots[0]].groupby(network.loads.bus).sum()
network.plot(bus_sizes=load_distribution*0.1,line_widths=1.5,ax=ax,title="Load Distribution", boundaries=[100,113,8,23.5])



RE: Help me about the load_distribution, network.plot .... - nilamo - Feb-08-2018

Well, that's clearly not a whole file, so it doesn't mean much of anything, as it couldn't ever run.

That said, you can probably guess what it does just by looking at what things are named. And my guess is that it might plot network load distribution, grouped by the network bus.