-2

I have a large list which consists of float values.

My question is how can I plot that list?

I read it should be sliced first but I am not sure how to do it.

Tonechas
  • 13,398
  • 16
  • 46
  • 80
wendigoood
  • 11
  • 2

1 Answers1

0

Plotting a list of numbers is straightforward using matplotlib:

import matplotlib.pyplot as plt
your_list = [2.3, 5.7, -1.4, 4.6, -2.9, 7.2]
plt.plot(your_list)

Output:

enter image description here

Tonechas
  • 13,398
  • 16
  • 46
  • 80