Created
June 26, 2018 12:07
-
-
Save allatambov/012c1c0a9aadc8402a762dbf71204a0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# загрузить библиотеку | |
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