如何绘制图像矩阵?

2024-03-29 08:33:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我想把这些图像的一个任意的索引和一个名为lenj的图结合起来。我有办法吗?在

换句话说,使用图像而不是热图中的值。在


Tags: 图像热图办法lenj
1条回答
网友
1楼 · 发布于 2024-03-29 08:33:27

使用函数subplots例如:

import matplotlib.pyplot as plt
...

fig, ax = plt.subplots(nrows=len(i), ncols=len(i), sharex=True, sharey=True,)
ax = ax.flatten()
for idx in range(len(i)):    
  for jdx in range(len(j)): 
    ax[idx,jdx].imshow(the arbitrary_name_index using idx,jdx as indeces)

你最需要调整的代码

相关问题 更多 >