본문 바로가기

Enginius/Python&TensorFlow

python subplot

f, axarr = plt.subplots(1, 3, figsize=_figsize)

    r = get_s4reward(rewards)

    axarr[0].scatter(zmu_proj[idx_l,0],zmu_proj[idx_l,1],s=r[idx_l],marker='o',edgecolors='g',facecolors=_facecolors,linewidths=2,label='Left')

    axarr[0].set_xlim([-m,m]); axarr[0].set_ylim([-m,m]); axarr[0].set_title('Left', fontsize=25)

    axarr[1].scatter(zmu_proj[idx_r,0],zmu_proj[idx_r,1],s=r[idx_r],marker='o',edgecolors='r',facecolors=_facecolors,linewidths=2,label='Left')

    axarr[1].set_xlim([-m,m]); axarr[1].set_ylim([-m,m]); axarr[1].set_title('Right', fontsize=25)

    axarr[2].scatter(zmu_proj[idx_c,0],zmu_proj[idx_c,1],s=r[idx_c],marker='o',edgecolors='b',facecolors=_facecolors,linewidths=2,label='Left')

    axarr[2].set_xlim([-m,m]); axarr[2].set_ylim([-m,m]); axarr[2].set_title('Center', fontsize=25)

    plt.show()

'Enginius > Python&TensorFlow' 카테고리의 다른 글

TensorFlow 'reduce_prod', 'kron', 'tf_normal','tf.nn.softmax','invkronprod','save&load'  (0) 2018.01.05
Pycharm Usage  (0) 2017.12.01
numpy append example  (0) 2017.10.31
PCA in Python using numpy  (0) 2017.10.18
python plot  (0) 2017.09.26