
Ich habe das Brokenaxes-Paket hier gefunden und den Versuch:
Code: Select all
from brokenaxes import brokenaxes
import numpy as np
bax = brokenaxes(xlims=((0, 10), (195, 200)), hspace=.05)
x1 = np.linspace(0, 10, 100)
x2 = np.linspace(195, 200, 100)
bax.plot(x1, np.sin(x1), label='Part 1')
bax.plot(x2, np.cos(x2), label='Part 2')
bax.legend()
plt.show()

Allerdings wurden nur die Achsen zerstört, ohne die Ebene. Ist das eine elegante Methode, um so etwas zu erreichen? Vielleicht gibt es so eine Figur nicht, das finde ich nicht.
Mobile version