python数据可视化
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import random
mat = np.random.random((100, 100)) * 255
mat = np.array(mat, dtype=np.uint8)
plt.figure(figsize=(10, 10))
plt.subplot(1, 2, 1)
plt.axis("off")
plt.imshow(mat)
plt.subplot(1, 2, 2)
sns.lineplot([x for x in range(100)], [random.random()*x for x in range(100)])
plt.show()