Python Forum
Help me about the load_distribution, network.plot ....
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me about the load_distribution, network.plot ....
#1
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])
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to plot intraday data of several days in one plot mistermister 3 2,933 Dec-15-2020, 07:43 PM
Last Post: deanhystad
  How to plot vertically stacked plot with same x-axis and SriMekala 0 1,942 Jun-12-2019, 03:31 PM
Last Post: SriMekala

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020