当前位置:网站首页>Seaborn draws box chart and line chart
Seaborn draws box chart and line chart
2022-07-22 03:44:00 【RS&Hydrology】
utilize seaborn Draw box line diagram and broken line diagram ( Mean line ), Problems in the process :
1. problem 1
Reference resources python seaborn share x Axis drawing Data visualization Modify the code :
Drawing part code :
fig = plt.figure(figsize=[18,6])
ax1 = fig.add_subplot(111)
ax2 = ax1.twinx()
sns.boxplot(x='date',y='parameter',hue='Type',
data=data_sort.reset_index(),ax=ax1,
palette="cool_r",linewidth = 1.0,
fliersize = 1.0,saturation = 0.8,
showmeans=True,
notch=True,
meanprops={
"marker": "+","markersize": "5"},
dodge=False)
sns.pointplot(data_NRT_gro.index,data_NRT_gro.values,color='#9E71FF',
linewidth = 1.0,label = 'class1',marker='o',
ax = ax2)
Points of attention :
(1) use sns.pointplot mapping , no need sns.lineplot;
(2) Pay attention to the parameters dodge, When dodge=True, Indicates that a coincidence is encountered , It will move along the classification axis , I.e. no coincidence ;
Reference material :https://www.likecs.com/ask-601710.html
边栏推荐
- Implementing DDD based on ABP -- domain service, application service and dto practice
- Yii2 render custom template file
- 第97篇 笔记-solidity中的抽象(Abstract)
- 代码管理(新手)
- 第106篇 Compound 中的 Governance
- Yarn 的 Plug‘n‘Play 特性
- “F5G+EIoT“构建能源物联网,助力电力物联网数据服务
- SystemVerilog:如何指定仿真源文件?
- LeetCode402 移掉 K 位数字
- 第104篇 Compound 中的 cTokens
猜你喜欢
The training accuracy is comparable to alphafold2, and the speed is doubled. The helixfold training and reasoning code of the propeller is fully open source
PostgreSQL初/中/高级认证考试(7.16)通过考生公示
NPM and the development history of yarn
CLion配置WSL工具链
浅谈 Service Worker 在缓存资源以及Web Push上的应用
高度关注!2022 开放原子开源峰会最新议程一览
yii2渲染自定义模板文件
Intel汇编程序设计-整数算术指令(上)
ASP. Net GridView dynamically displays hidden columns and saves the customer's configuration (user control cookie version)
[激光器原理与应用-6]:Q开关元件与Q驱动电路板
随机推荐
Understanding of poor Charlie's classic
How to make the demand unable to go online smoothly as scheduled (I) overall strategy
[译] PostgreSQL 怎么决定PG 的备份策略
迅为龙芯开发板流程运行busybox,buildroot,loognix,QT5.12系统
特征抽取工具-Transformer-bert
数仓基本概念解析
一招教你拿捏网上视频
Idea 2020.1 cancel parameter name display
Gbdt frame
How to make the full-color LED display screen energy-saving and environmental protection?
浏览器缓存机制解析
决策树_ID3_C4.5_CART
Learning notes of Stanford CV course (I)
yii2 JsBlock::begin 无效问题
洛谷-换教室-(概率期望+dp)
Vs2017 offline installation
Threadpooltaskexecutor uses
NPM and the development history of yarn
第101篇 盲盒智能合约(ERC1155)
Part 92 inter contract transfer (I)