Hoe de horizontale en verticale lijn in Matplotlib te plotten

Hoe de horizontale en verticale lijn in Matplotlib te plotten

In deze tutorial zullen we twee methoden introduceren om horizontale en verticale lijnen in Matplotlib te tekenen. Deze twee methoden gebruiken verschillende coördinaten in Matplotlib. axhline() / axvline() hlines() / vlines() axhline en axvline om horizontale en verticale lijnen in Matplotlib te plotten axhline om een ​​horizontale lijn uit te zetten matplotlib.pyplot.axhline(y=0, xmin=0, xmax=1, hold=None, **kwargs) axhline plot een horizontale lijn op de positie van y in de gegevenscoördinaat van de horizontale lijn, beginnend xmin met xmax die tussen 0.

12 oktober 2021 Matplotlib Matplotlib Line

Tags

Matplotlib Line Matplotlib Figure Matplotlib Axes Matplotlib Ticks

Meest populaire artikelen

Laatste artikels