-1

How to display values on the lower side of the matplotlib chart?

I have this

enter image description here

I need this enter image description here

Geno C
  • 1,401
  • 3
  • 11
  • 26
LOVE USA
  • 51
  • 6
  • 1
    [How to put the legend out of the plot](https://stackoverflow.com/questions/4700614/how-to-put-the-legend-out-of-the-plot) – BigBen Jul 14 '20 at 16:14

1 Answers1

0

Try this where blue, yellow, green, red, purple is the lines you have

import matplotlib.pyplot as plt

plt.xlim(0, 1000)
plt.ylim(0, 5)
plt.xticks([0, 200, 400, 600, 800])
plt.yticks([1, 2, 3, 4, 5])
plt.legend((blue, yellow, green, red, purple), (180, 365, 730, 1095, 1825))
plt.show()