Thứ Năm, 25 tháng 8, 2022

matplotlib

- matplotlib

# Python Code # importing the matplotlib library import matplotlib.pyplot as plt fig, ax = plt.subplots() # x axis x = ["Python", "C++", "JavaScript", "Golang"] # y axis y = [10, 5, 9, 7] plt.plot(x, y, marker='o', linestyle='-', color='b') # Naming the x-label plt.xlabel('Language') # Naming the y-label plt.ylabel('Score') # Naming the title of the plot plt.title('Language vs Score') fig

0 Nhận xét:

Đăng nhận xét

Đăng ký Đăng Nhận xét [Atom]

<< Trang chủ