ila*_*lan 5 png matplotlib subplot
如何创建子图,其中完全创建了背景,没有灰色边界,带有来自file.png的png图像
我试过了:
import matplotlib.pyplot as plt
im = plt.imread('map.gif')
implot = plt.imshow(im,aspect='auto',origin='lower')
fig0=implot.figure.tight_layout(pad=0.5)
implot.axes.set_axis_off()
fig1=implot.figure
ax1=fig1.add_subplot(2,2,1)
ax1.plot(range(10))
ax2=fig1.add_subplot(2,2,2)
ax2.plot(range(9,-1,-1))
plt.show()
Run Code Online (Sandbox Code Playgroud)
我无法获得覆盖整个图形窗口的图像
谢谢
宜兰
| 归档时间: |
|
| 查看次数: |
942 次 |
| 最近记录: |