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()
이것은 당신이 뭔가를 제공해야합니다.
