本文整理匯總了Python中movie.Movie.add方法的典型用法代碼示例。如果您正苦於以下問題:Python Movie.add方法的具體用法?Python Movie.add怎麽用?Python Movie.add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類movie.Movie
的用法示例。
在下文中一共展示了Movie.add方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Movie
# 需要導入模塊: from movie import Movie [as 別名]
# 或者: from movie.Movie import add [as 別名]
smin = np.min(stack)
avifn = os.path.join(frame_dir,'frames.avi')
make_movie = not os.path.exists(avifn)
if make_movie:
mov = Movie(avifn)
fig = plt.figure()
for k in range(N_frames):
plt.cla()
plt.imshow(astack[k,:,:],interpolation='none',aspect='auto')
plt.clim((smin,smax))
if k==0:
plt.colorbar()
mov.add(fig)
plt.pause(.1)
mov.make()
sz,sy,sx = stack.shape
intervals = range(1,80)
variances = []
control_variances = []
mads = []
control_mads = []
示例2: fixticks
# 需要導入模塊: from movie import Movie [as 別名]
# 或者: from movie.Movie import add [as 別名]
ax3.plot(t,pv_list,'g')
ax3.set_ylabel('phase variance')
ax3.set_xticks([])
ax3.set_yticks(ax3.get_yticks()[:-1])
ax3.set_xlim((t1,t2))
ax4.plot(t,compv_list,'b')
ax4.set_xlim((t1,t2))
ax4.set_yticks(ax4.get_yticks()[:-2])
ax4.set_ylabel('complex variance')
for ax in ax_list[1:]:
ax.axvline(now,c=[.5,.5,.5])
fixticks(ax)
m.add(fig)
plt.close()
print now
m.make()
sys.exit()
p1 = Phasor(1.0,np.pi/4.0)
p2 = Phasor(1.0,np.pi/3.0)
ax = plt.axes()
ax.set_xlim((-1,1))
ax.set_ylim((-1,1))
p1.plot_context(ax)
p1.plot(ax)