Python+matplotlib实现华丽的文本框演示代码
作者:mengwei 时间:2021-07-19 08:19:51
华丽的文本框演示
首先看看演示结果:
实现代码
import matplotlib.pyplot as plt
plt.text(0.8, 0.5, "python", size=50, rotation=30.,
ha="center", va="center",
bbox=dict(boxstyle="round",
ec=(1., 0.5, 0.5),
fc=(1., 0.8, 0.8),
)
)
plt.text(0.75, 0.6, "www.jb51.net", size=50, rotation=-30.,
ha="right", va="top",
bbox=dict(boxstyle="square",
ec=(1., 0.5, 0.5),
fc=(1., 0.8, 0.8),
)
)
plt.draw()
plt.show()
总结
来源:https://matplotlib.org/index.html
标签:python,matplotlib,文本框
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
ASP函数大全(数字函数)
2009-06-01 12:33:00
QQ影音正式版官网Banner设计
2009-03-27 18:46:00
![](https://img.aspxhome.com/file/UploadPic/20093/27/qqpalyer_banner_01-20s.jpg)
解决php-fpm.service not found问题的办法
2023-11-21 14:26:21
详解Go 将在下个版本支持新型排序算法pdqsort
2023-10-07 23:49:40
![](https://img.aspxhome.com/file/2023/8/103028_0s.png)
WINDOWS 同时安装 python2 python3 后 pip 错误的解决方法
2023-07-01 11:01:00
![](https://img.aspxhome.com/file/2023/5/72065_0s.jpg)
ASP Session对象的集合以及属性方法事件
2009-02-02 09:26:00
SQL中自己创建函数 分割字符串
2008-11-20 16:13:00
Python实现从多表格中随机抽取数据
2022-07-01 01:58:18
![](https://img.aspxhome.com/file/2023/1/83931_0s.png)
PHP GD 图像处理组件的常用函数总结
2023-11-21 21:39:17
Golang之模糊测试工具的使用
2023-07-01 19:47:47
python链表的基础概念和基础用法详解
2021-02-26 07:13:50
![](https://img.aspxhome.com/file/2023/5/80435_0s.jpg)
就 CSS3 向 Eric Meyer 请教的 6 个问题
2008-12-29 13:52:00
![](https://img.aspxhome.com/file/UploadPic/200812/29/g20081213213229-92s.jpg)
ASP连接SQL2005数据库连接代码
2011-03-25 10:44:00
PHP addslashes()函数讲解
2023-06-04 04:28:24
![](https://img.aspxhome.com/file/2023/0/55400_0s.png)
用 Python 脚本实现电脑唤醒后自动拍照并截屏发邮件通知
2023-08-30 14:15:44
![](https://img.aspxhome.com/file/2023/5/62555_0s.png)
ASP 根据用户权限判断显示的列标题
2011-03-29 11:01:00
ipython jupyter notebook中显示图像和数学公式实例
2022-06-20 12:19:37
CSS技巧之圆角背景与三角形
2010-10-19 12:40:00
python wav模块获取采样率 采样点声道量化位数(实例代码)
2023-04-26 23:25:28
python3.6.3安装图文教程 TensorFlow安装配置方法
2021-06-25 19:20:42
![](https://img.aspxhome.com/file/2023/0/81660_0s.png)