让Python Matplotlib使用事半功倍!

分享一款不错的Matplotlib可视化查询手册,让Python Matplotlib事半功倍!59f3f76c0f1ec121bb8e2b528d103d19.png当可视化时,记不清楚图形Marker名称、colormap名称、坐标轴刻度设置、图例设置等等时,稍微扫描一眼该手册,直接YYDS。


下面简单介绍一下这个手册:

0、图中各位置设置

这张图能帮助更好的了解matplotlib中图形结构、Figure和axes之间的关系 ,4038556e634c8e88f56b52117d99f9ef.png关于Matplotlib图形详细结构:
类似MATLAB: 详解Python Matplotlib(pyplot法)[1]
面向对象:详解Python Matplotlib(面向对象法)[2]


1、标记Marker设置

包括marker的边框 (edge)颜色、填充 (face)颜色、边框线磅值、边框size等等。4d1882da385413f22c8559c9816d0de9.png更多关于marker设置:一文掌握Matplotlib marker使用[3]


2、线line设置

包括线填充色、线磅值、线头 (cap style)形状、线型等等。3db0b6e1397324550043bbd69d5dcddd.png  更多关于line设置:一文掌握Matplotlib linestyle使用[4]


3、多边形使用设置

711fd17a3eff360965e61cf7286f6a6f.png

4、坐标轴刻度设置

不添加刻度,主刻度、副刻度混合使用,科学计数法等等。4b39b9d5495f002dc43b7ffd2eba992e.png关于刻度设置:详解Matplotlib 坐标轴|刻度值|刻度|标题设置[5]


5、图例设置

如何图例个性化,👇0e56beddd0d8fb4cd39f993640c9d995.png更多关于图例:详解Matplotlib图例(legend)[6]


6、配色选择

记不清楚colormap名称,扫一眼即可,9ee295e8357a84756efdeb0dd8c36c73.png这里只是介绍了Matplotlib内置colormap,更多介绍:

  • Python matplotlib-内置单颜色(一)[7]

  • Python matplotlib-外部单颜色(二)[8]

  • Python matplotlib内置colormap(三)[9]

  • Python matplotlib外部colormap(四)[10]

  • Python Seaborn颜色及colormap (五)[11]

不一一介绍了~ ,有帮助求三连!

参考资料

[1]

详解Python Matplotlib (pyplot法): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247509990&idx=1&sn=fdf5c950864f8ca3a1a0d1c1ae129d78&chksm=f90ee3b8ce796aae9365de7323382514931b5368b79059e6f7836c1ef9c68e9443dc31f73c04&token=1948616811&lang=zh_CN#rd

[2]

详解Python Matplotlib (面向对象法): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247504663&idx=1&sn=cb971c48f35f83562e6381a67ca85799&scene=21#wechat_redirect

[3]

一文掌握Matplotlib marker使用: https://mp.weixin.qq.com/s/xwFhWBXNgGi3p10bpTs0Jg

[4]

一文掌握Matplotlib linestyle使用: https://mp.weixin.qq.com/s/xwFhWBXNgGi3p10bpTs0Jg

[5]

详解Matplotlib 坐标轴|刻度值|刻度|标题设置: https://mp.weixin.qq.com/s/LVU51b3HcYXircHQirlgcA

[6]

详解Matplotlib图例(legend): https://mp.weixin.qq.com/s/vh6W7-pOczoyc2Lqiiix0Q

[7]

Python matplotlib-内置单颜色(一): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484253&idx=1&sn=45002543ed2b320a139a0b724372cad6&chksm=f90d4703ce7ace151c99761ca0c52c1ed76fff2c3e92ac3c6b9a1131b04ec4ce9686be42cfdd&scene=21#wechat_redirect

[8]

Python matplotlib-外部单颜色(二): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484291&idx=1&sn=22ff03a3be940883e8c639e2ec4bd581&chksm=f90d47ddce7acecba9fd2057cd5127abeb48cb0089fde39a0a2f75d965995970ce1d9bebf8a4&scene=21#wechat_redirect

[9]

Python matplotlib内置colormap(三): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247484329&idx=1&sn=20ec36f7f5077221671b32d47c3412c8&chksm=f90d47f7ce7acee11449c5584a11a020cf05c27f7a60b9357bbdc35181cc7e8420c594d09fc5&scene=21#wechat_redirect

[10]

Python matplotlib外部colormap(四): https://mp.weixin.qq.com/s?__biz=MzUwOTg0MjczNw==&mid=2247500421&idx=1&sn=1e81cdfe414e6962c8162e0240a39363&chksm=f90e86dbce790fcdcf178462d0da911d8af6fde0cea6235fc55b5d40f086fdaced78830355c2&token=1948616811&lang=zh_CN#rd

[11]

Python Seaborn颜色及colormap (五): https://mp.weixin.qq.com/s/s926ITT9opbzans5-muDEg

-------- End --------

推荐👇同名微信视频号

80920dd9a7eb009ad5a0f2761bd37076.png

14dbf39a9075dedd35fdfef7da3446fe.jpeg
图解Pandas
f5106a0228e49b0eb02882f65e74a127.jpeg 729789e846d9086c54cb2c9206029c0f.jpeg
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值