Код: Выделить всё
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
data = np.array([[4244.95, 4151.69, 2157.41, 829.769, 426.253, 215.655],
[8263.14, 4282.98, 2024.68, 1014.6, 504.515, 250.906],
[8658.01, 4339.53, 2173.56, 1087.65, 544.069, 544.073]])
x = np.array([1, 2, 4, 8, 16, 32])
y = np.array([2, 4, 8])
x, y = np.meshgrid(x, y)
z = data
fig = plt.figure()
ax = Axes3D(fig)
ax.plot_surface(x, y, z, rstride=1, cstride=1, cmap='rainbow')
ax.set_xlabel('Stride')
ax.set_ylabel('Bitwidth')
ax.set_zlabel('Performance')
plt.show()
Код: Выделить всё
matplotlibКод: Выделить всё
numpyЯ пробовал в windows11 и wsl ubuntu-20.04, но картинки по-прежнему пустые.
Подробнее здесь: https://stackoverflow.com/questions/760 ... nk-picture