36 lines
836 B
Python
36 lines
836 B
Python
#!/usr/bin/env python
|
|
#-*- coding:utf8-*-
|
|
|
|
# ------------------------------
|
|
# Imports
|
|
# ------------------------------
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
# ------------------------------
|
|
# Bloc principal
|
|
# ------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
plt.plot([-1,3,-3,0],[4,2.5,1,(2.5+1)/2],'+',color = "b")
|
|
plt.annotate("E", xy = (-1,4), xytext = (-1,4.2))
|
|
plt.annotate("F", xy = (3,2.5), xytext = (3,2.7))
|
|
plt.annotate("G", xy = (-3,1), xytext = (-3,1.2))
|
|
plt.annotate("K", xy = (0,(2.5+1)/2), xytext = (0.2,(2.5+1)/2))
|
|
|
|
|
|
plt.axis([-4,4,-3,5])
|
|
plt.grid(True)
|
|
plt.show()
|
|
|
|
|
|
# ------------------------------
|
|
# Fin du programme
|
|
# ------------------------------
|
|
|
|
# -----------------------------
|
|
# Reglages pour 'vim'
|
|
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
|
# cursor: 16 del
|
|
|