当前位置:网站首页>Matplotlib common operations
Matplotlib common operations
2022-06-26 14:22:00 【Chaoying.】
- Chinese and negative numbers are garbled
plt.rcParams['axes.unicode_minus'] = False # Solve the problem that the negative sign cannot be displayed normally
plt.rcParams['font.sans-serif'] = ['SimHei']
- Coordinate axis setting
- Set the axis range
plt.xlim([x_min,x_max]) plt.ylim([y_min,y_max])- Set the axis scale interval
ax=plt.gca()# Get the current canvas ax.xaxis.set_major_locator(plt.MultipleLocator(2)) ax.yaxis.set_major_locator(plt.MultipleLocator(100))
- Two sets of data of different types are in the same coordinate system ( The same X Axis , Different y Axis )
plt.twinx()
- Column related settings
plt.legend(frameon=False,loc=`upper left`,bbox_to_anchor=(0.2,0.4))// Percentage shift right and percentage shift up , Take the bottom left corner as the origin
loc Possible values 
边栏推荐
- Correlation analysis related knowledge
- windows版MySQL软件的安装与卸载
- Sword finger offer 40.41 Sort (medium)
- FreeFileSync 文件夹比较与同步软件
- Notes: the 11th and 12th generation mobile versions of Intel support the native thunderbolt4 interface, but the desktop version does not
- 虫子 STL string上
- 虫子 类和对象 中
- Practice with the topic of bit operation force deduction
- Zero basics of C language lesson 8: Functions
- Win10 home vs pro vs enterprise vs enterprise LTSC
猜你喜欢

Eigen(3):error: ‘Eigen’ has not been declared

Stream常用操作以及原理探索

Server create virtual environment run code

From Celsius to the three arrows: encrypting the domino of the ten billion giants, and drying up the epic liquidity

FreeFileSync 文件夹比较与同步软件

Sword finger offer 15.65.56 I 56Ⅱ. Bit operation (simple - medium)

C language | file operation and error prone points

9项规定6个严禁!教育部、应急管理部联合印发《校外培训机构消防安全管理九项规定》

量化框架backtrader之一文读懂observer观测器

A must for programmers, an artifact utools that can improve your work efficiency n times
随机推荐
布局管理器~登录界面的搭建实例
Eigen(3):error: ‘Eigen’ has not been declared
How to call self written functions in MATLAB
Sword finger offer 18.22.25.52 Double pointer (simple)
从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭
Niuke challenge 48 e speed instant forwarding (tree over tree)
The most critical elements of team management
Pycharm远程连接服务器来跑代码
Mathematical design D12 according to string function
Exercise set 1
在线牛人博主
Sword finger offer 09.30 Stack
CF676C Vasya and String
Design of PHP asymmetric encryption algorithm (RSA) encryption mechanism
How to convert data in cell cell into data in matrix
Gartner 2022年顶级战略技术趋势报告
Educational Codeforces Round 117 (Rated for Div. 2)E. Messages
Comparison of disk partition modes (MBR and GPT)
RISC-V 芯片架构新规范
D check type is pointer