Answers for "matplotlib colors"

5

change plot line color in matplotlib

plot(x, y, color='green', linestyle='dashed', marker='o',
     markerfacecolor='blue', markersize=12).
Posted by: Guest on May-04-2020
4

matplotlib background color

fig, ax = plt.subplots()
#to change the inside of the graph
ax.set_facecolor('xkcd:salmon')
ax.set_facecolor((1.0, 0.47, 0.42))
#to change the border color around the back
fig.patch.set_facecolor('xkcd:mint green')
Posted by: Guest on May-13-2020
0

color plt

matplotlib. colors
b : blue.
g : green.
r : red.
c : cyan.
m : magenta.
y : yellow.
k : black.
w : white.
Posted by: Guest on November-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language