MPLのラインスタイルとマーカーには多くのオプションがあります。見てくださいhere、hereとhere。あなたの具体的な例
(私はすぐにいくつかの関数を作ったし、大体最初のいくつかの例をプロット):
import matplotlib.pyplot as plt
import numpy as np
x=np.arange(6)
fig=plt.figure()
fig.show()
ax=fig.add_subplot(111)
ax.plot(x,x,c='b',marker="^",ls='--',label='GNE',fillstyle='none')
ax.plot(x,x+1,c='g',marker=(8,2,0),ls='--',label='MMR')
ax.plot(x,(x+1)**2,c='k',ls='-',label='Rand')
ax.plot(x,(x-1)**2,c='r',marker="v",ls='-',label='GMC')
ax.plot(x,x**2-1,c='m',marker="o",ls='--',label='BSwap',fillstyle='none')
ax.plot(x,x-1,c='k',marker="+",ls=':',label='MSD')
plt.legend(loc=2)
plt.draw()
これはあなたにこのような何かを与える必要があります。