python - 使用 Matplotlib 绘制空图?

标签 python

我想画一个空的图表。 Y 轴应为日期和时间,X 轴应为公里。如需引用,请参阅图片。我不需要蓝色图表线。 enter image description here

最佳答案

我不知道这是否是正确的方法,但我有点用一个次要情节作弊。

import pylab as plt

ax1 = plt.subplot2grid((1,1),(0,0))
plt.xlim([0, 100])
plt.ylim([0, 750])

plt.show()

关于python - 使用 Matplotlib 绘制空图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68064125/

相关文章:

python - AWS Lambda 中的 Wget 不返回

python - 如何创建调用生成器函数的生成器函数

python - 安装 LAMP 会修复 Django/MySQL 配置问题吗?

python - 在 XML 文档中搜索命名空间中的元素

python - Ctrl-C 结束我的脚本,但它没有被 KeyboardInterrupt 异常捕获

python - 如何从我的 python 字典中删除\n?

python - 使用 Flask、Flask 登录、mod-wsgi 切换到 wsgi 时登录停止工作

python - 检查列表并相应地编辑第二个列表

python - read_csv 将 .1 附加到列名

python - 在Python中移动矩阵行的最快方法