Pfeile an x- und y-Achse plotten

mit matplotlib, NumPy, pandas, SciPy, SymPy und weiteren mathematischen Programmbibliotheken.
Antworten
BlankerHans
User
Beiträge: 2
Registriert: Samstag 23. Dezember 2023, 01:34

Moin,

Ich habe die Lösung auf stackoverflow (https://stackoverflow.com/a/63936035/16965070) gefunden, aber ich verwende

Code: Alles auswählen

plt.style.use("dark_background")
für meine Plots. Anscheinend kann man mit diesem Stil die Pfeile nicht sehen.

Weiß vielleicht jemand, wie man das lösen kann, da ich absolut keine Ahnung habe?
Manul
User
Beiträge: 53
Registriert: Samstag 13. Februar 2021, 16:00

https://matplotlib.org/3.3.4/api/colors_api.html?highlight=colors#module-matplotlib.colors hat geschrieben:Matplotlib recognizes the following formats to specify a color:
[...]
one of the characters {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, which are short-hand notations for shades of blue, green, red, cyan, magenta, yellow, black, and white. Note that the colors 'g', 'c', 'm', 'y' do not coincide with the X11/CSS4 colors. Their particular shades were chosen for better visibility of colored lines against typical backgrounds.
Schwarze Pfeile sind möglicherweise nicht die beste Wahl für ein dunkles Farbschema... ;)
BlankerHans
User
Beiträge: 2
Registriert: Samstag 23. Dezember 2023, 01:34

Manul hat geschrieben: Samstag 23. Dezember 2023, 10:43
https://matplotlib.org/3.3.4/api/colors_api.html?highlight=colors#module-matplotlib.colors hat geschrieben:Matplotlib recognizes the following formats to specify a color:
[...]
one of the characters {'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}, which are short-hand notations for shades of blue, green, red, cyan, magenta, yellow, black, and white. Note that the colors 'g', 'c', 'm', 'y' do not coincide with the X11/CSS4 colors. Their particular shades were chosen for better visibility of colored lines against typical backgrounds.
Schwarze Pfeile sind möglicherweise nicht die beste Wahl für ein dunkles Farbschema... ;)
Ah danke dir. War gestern Abend glaub ich ein wenig zu müde. :D Frohe Weihnachten :)
Antworten