Wie man eine Linie in matplotlib überall in Subplots hinzufügt

Beispiel:

plot_line.py
# Linie z. B. zwischen Subplot-Zeilen hinzufügen
y = 0.595 # Manuell so eingestellt, dass sie in der Mitte zwischen den zwei Zeilen liegt
fig.add_artist(Line2D([0, 1], [y, y], transform=fig.transFigure, color="black", linewidth=0.5))

Check out similar posts by category: Python, MatPlotLib