当前位置:网站首页>matplotlib. Pyplot partition drawing
matplotlib. Pyplot partition drawing
2022-04-23 20:47:00 【NuerNuer】
There is not much emphasis on details here , Only the method of use is given here
Method 1 : Use plt.subplot function
plt.figure
plt.subplot(1,2,1) # Express 1 That's ok 2 The first area of the column
plt.plot(..)
plt.legend(..)
plt.xlabel(..)
plt.ylabel(..)
plt.subplot(1,2,2) # Express 1 That's ok 2 The second region of the column
plt.plot(..)
plt.legend(..)
plt.xlabel(..)
plt.ylabel(..)
plt.show()
Method 2 : Use plt.subplots() function
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1,2)
ax[0].plot([3,2,1])
ax[0].legend('bb')
ax[0].set_xlabel('[0, 0]')
ax[1].plot([1,2,3]) #0,1 It means to select the first 0 Xing di 1 Column ax Subgraphs
ax[1].legend('aa')
ax[1].set_xlabel('[0, 1]')
plt.show()
About the setting of some details , You can refer to another blog post of mine :https://blog.csdn.net/qq_41368074/article/details/116669086
More complicated usage , Refer to this blog plt.subplot2grid The usage function :https://www.cnblogs.com/yoyo1216/p/10131662.html
In this paper, the reference :https://blog.csdn.net/wc881108/article/details/107656015
版权声明
本文为[NuerNuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210545523139.html
边栏推荐
- go reflect
- Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
- Summary and effect analysis of methods for calculating binocular parallax
- How to use PM2 management application? Come in and see
- 2021-06-29 C escape character cancellation and use
- Write table of MySQL Foundation (create table)
- GSI-ECM工程建设管理数字化平台
- JSX syntax rules
- Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
- Leetcode 20. Valid parentheses
猜你喜欢
Common commands of MySQL in Linux
Linux中,MySQL的常用命令
GSI-ECM工程建设管理数字化平台
Identifier CV is not defined in opencv4_ CAP_ PROP_ FPS; CV_ CAP_ PROP_ FRAME_ COUNT; CV_ CAP_ PROP_ POS_ Frames problem
Common problems in deploying projects with laravel and composer for PHP
Unity Odin ProgressBar add value column
浅谈数据库设计之三大范式
又一款数据分析神器:Polars 真的很强大
Matlab: psychtoolbox installation
Cmake project under vs2019: calculating binocular parallax using elas method
随机推荐
Selenium displays webdriverwait
又一款数据分析神器:Polars 真的很强大
Solve the Chinese garbled code of URL in JS - decoding
Leetcode 1337. Row K with the weakest combat effectiveness in the matrix
[PTA] l1-002 printing hourglass
笔记本电脑卡顿怎么办?教你一键重装系统让电脑“复活”
缓存淘汰算法初步认识(LRU和LFU)
Zhongchuang storage | how to choose a useful distributed storage cloud disk
浅谈数据库设计之三大范式
Another data analysis artifact: Polaris is really powerful
6-5 string - 2 String copy (assignment) (10 points) the C language standard function library includes the strcpy function for string copy (assignment). As an exercise, we write a function with the sam
MySQL基础合集
Linux中,MySQL的常用命令
Is qiniu school useful and is the recommended securities account safe
PHP的Laravel与Composer部署项目时常见问题
Introduction to intrusion detection data set
MySQL进阶之数据的增删改查(DML)
MySQL进阶之表的增删改查
wait、waitpid
深入探究ASP.NET Core读取Request.Body的正确方式