0

I want dimond to be filled with red, circle to filled with blue and star as green in the title. How to do that?

from matplotlib import pyplot as plt
fig,ax=plt.subplots( figsize=(4,5))
xx=[1,2,3,4,5]
yy=[3,2,4,5,1]
plt.plot(xx,yy)
name=r'$\bigtriangleup \bigcirc \bigstar \diamondsuit$'
plt.title(name)
plt.show()

enter image description here

ankit agrawal
  • 301
  • 1
  • 14

0 Answers0