79728333

Date: 2025-08-07 09:12:29
Score: 1.5
Natty:
Report link

Why not just to make a stacked bar plot? Somethin like this:

res = df.T.drop_duplicates().T
# df here is your source dataframe
fig, ax = plt.subplots()

for name, group in res.groupby("PVR Group"):    
    ax.bar((group['min_x']+(group['max_x']-group['min_x'])/2),
           group['max_y']-group['min_y'],
           width=(group['max_x']-group['min_x']),
           bottom=group['min_y'],
           label=name,
           edgecolor="black")

ax.legend()
plt.show()

enter image description here

I believe you could adjust the design to meet your taste.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: strawdog