python-3.x - Using matplotlib.pyplot.clabel to add labels with a transparent background
问题描述
For matplotlib.pyplot.clabel, is it possible to add labels to a contour plot without the white space behind the labels covering up any portion the contour lines? When I try to add labels to a contour plot it tends to cover up part of the contour plot with white space. Perhaps there is a way of making the background of the text transparent?
解决方案
使用inline
论据
plt.clabel(..., inline=False)
推荐阅读
- python-3.x - 如何获得多个文本文件的误差条图的拟合曲线
- linux - 从无限输入流读取的while循环中的参数列表太长错误
- sql-server - SQL Server 2008 中的 SQL 注入 - 是否可以在没有堆叠查询的情况下启用 XP_CMDSHELL
- r - 汇总 DataFrame 的附加列
- javascript - 在函数返回的表中呈现数组数据 - Reactjs Javascript
- qt - QT 上的 MINGW 与 VS 编译器
- ruby-on-rails - 从 Rails 中的循环结果访问更多对象
- php - 如何在 phpspreadsheet 中为我的两线散点图制作正确的 X 轴
- c++ - 64 位/32 位 IPC 的 POSIX 信号量的替代品?
- python - 尽管 PyCharm 自动填充建议,ValueError 尝试相对导入超出顶级包