1. 그래프 겹쳐그리기에 관한 글을 읽고 python으로 구현 이 글은 2.여기에서 참고함. 링크 1에 가보면 두개의 크기가 다른 벡터가 있다. 이것을 python으로 한 그래프에 표현할려면import matplotlib.pylab as pl
ax1 = pl.subplot(111)
t = [1.,2.,3.,4.]
aa=[11.4, 12.7, 13.1, 14.56]
pl.plot(t, aa, 'b-o',label="aa")
pl.text(3,14.7,"<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">",verticalalignment='top', horizontalalignment='left') pl.ylabel('bb') --------------->
<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">ax2.yaxis.tick_right() --------------->
<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">pl.show()--------------->
<--------------- ------------------="" 2.2="" 3.54="" 4.0="" aa="" ax2="pl.twinx()" bb="" horizontalalignment="right" label="bb" no="" pl.plot="" pl.show="" pl.text="" pl.xlabel="" pl.ylabel="" r-s="" t="" verticalalignment="top">--------------->
No comments:
Post a Comment