Created
July 20, 2017 15:24
-
-
Save adash333/09d5d5b0217ca8a91e61db60ceed9a1c 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
# (x1, y1), (x2, y2)を結ぶ線分のグラフ | |
%matplotlib inline | |
import matplotlib.pyplot as plt | |
plt.plot([x1, x2], [y1, y2], color='k', linestyle='-', linewidth=1) | |
# 例 | |
%matplotlib inline | |
import matplotlib.pyplot as plt | |
plt.plot([-2, 7], [10.375, -4.67], color='k', linestyle='-', linewidth=1) | |
plt.xlim([-4,8]) | |
plt.ylim([-6,12]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment