2019-12-21

2019-12-21  本文已影响0人  richybai

PINN discover代码学习 作图部分

PINNs-master\appendix\continuous_time_identification (Burgers)


fig, ax = newfig(1.0, 1.4)
ax.axis('off')
ax = fig.add_subplot(111) # ax = fig.add_subplot(1, 1, 1)
gs0 = gridspec.GridSpec(1, 2) # 将画布分割,一行二列
gs0.update(top=1-0.06, bottom=1-1.0/3.0+0.06, left=0.15, right=0.85, wspace=0)
ax = plt.subplot(gs0[:, :]) #规定作图区域


imshow()部分参数

h = ax.imshow(X, interpolation='nearest', cmap='rainbow', 
                  extent=[t.min(), t.max(), x.min(), x.max()], 
                  origin='lower', aspect='auto')

from scipy.interpolate import griddata多维插值,常用于重构图片

griddata(points, values, xi, method='linear', fill_value=nan)
上一篇 下一篇

猜你喜欢

热点阅读