Seite 1 von 1

Pfeile an x- und y-Achse plotten

Verfasst: Samstag 23. Dezember 2023, 01:38
von BlankerHans
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?

Re: Pfeile an x- und y-Achse plotten

Verfasst: Samstag 23. Dezember 2023, 10:43
von Manul
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... ;)

Re: Pfeile an x- und y-Achse plotten

Verfasst: Samstag 23. Dezember 2023, 13:00
von BlankerHans
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 :)