小编wat*_*ter的帖子

如何安装自定义构建Python的头文件?

我从源代码安装python 3.8.3,如何安装python头文件(devel文件)?

python

7
推荐指数
0
解决办法
679
查看次数

需要 matplotlib 中日期时间系列 3D 绘图的帮助

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = fig.gca(projection = '3d')

x = np.zeros((2, 24), dtype = 'datetime64[h]')
x[0,  : ] = np.arange('2020-02-27', '2020-02-28', dtype = 'datetime64[h]')
x[1,  : ] = np.arange('2020-02-28', '2020-02-29', dtype = 'datetime64[h]')

y = np.zeros((2, 24), dtype = 'datetime64[D]')
y[0, : ] = np.array(['2020-02-27' for i in range(24)])
y[1, : ] = np.array(['2020-02-28' for i in range(24)])

z = np.zeros((2, 24))
z[0,  : ] = np.arange(24)
z[1, …
Run Code Online (Sandbox Code Playgroud)

python numpy matplotlib

2
推荐指数
1
解决办法
1505
查看次数

标签 统计

python ×2

matplotlib ×1

numpy ×1