Python Forum

Full Version: Help me about the load_distribution, network.plot ....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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])
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.