凡例はlegendメソッドで描画します。
凡例の文字列は、plotメソッドなどの引数「label」で指定します。
凡例を表示する位置は、legendメソッドの引数「loc」で指定します。
x = [0.0, 1.0]
y = [0.0, 1.0]
fig, ax = plt.subplots()
ax.plot(x, y, label='sample')
ax.legend(loc='best')
best
upper left
upper center
upper right
center left
center
center right
lower left
lower center
lower right