79772701

Date: 2025-09-23 14:12:09
Score: 1.5
Natty:
Report link

Why not use the object-oriented way of creating plots with matplotlib?

for (site, v) in weather_data.items():
    f, ax = plt.subplots()
    for day, value in v["Avg"].items():
        ax.plot(value[0], value[1], label = site)
    
    ax.legend()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not use the
  • High reputation (-1):
Posted by: raphael