Line chart in python

import matplotlib.pyplot as plt
import numpy as np

x = np.array([1,8,7,6,5,4])
y = np.array([3,10,12,13,23,17])

#plot dots instead of a line
#plot stars
plt.plot(x,y,"--")
plt.show()

Comments

Popular posts from this blog

ESP32 Error: A fatal error occurred: Timed out waiting for packet content.

How to calculate Mean, Median and Mode in python

Detecting Obstacles and Warnings with ultrasonic sensor