Skip to content

Instantly share code, notes, and snippets.

@allatambov
Created June 26, 2018 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allatambov/012c1c0a9aadc8402a762dbf71204a0a to your computer and use it in GitHub Desktop.
Save allatambov/012c1c0a9aadc8402a762dbf71204a0a to your computer and use it in GitHub Desktop.
# загрузить библиотеку
import matplotlib.pyplot as plt
# создать простой график на основе двух списков
X = [-2, -0.5, 0, 2, 5, 8, 9, 10]
Y = [4, 0.25, 0, 4, 25, 64, 81, 100]
plt.plot(X,Y)
plt.plot(X, Y, 'lightblue')
plt scatter(X, Y)
# почему numpy обычно идет в связке с matplotlib
np.linspace()
# оформление графика
# создание всей картинки
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment