当前位置:网站首页>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 
边栏推荐
- Hard (magnetic) disk (II)
- 2021-10-18 character array
- BP neural network for prediction
- 近期比较重要消息
- Server create virtual environment run code
- ICML 2022 | limo: a new method for rapid generation of targeted molecules
- Introduction to 26 papers related to CVPR 2022 document image analysis and recognition
- Correlation analysis related knowledge
- 虫子 内存管理 下 内存注意点
- 虫子 运算符重载的一个好玩的
猜你喜欢

Freefilesync folder comparison and synchronization software

Codeforces Global Round 21A~D

C language | Consortium

8.Ribbon负载均衡服务调用

Use performance to see what the browser is doing

Pycharm远程连接服务器来跑代码

Sword finger offer 21.57.58 I Double pointer (simple)

Server create virtual environment run code

Win10 home vs pro vs enterprise vs enterprise LTSC

服务器创建虚拟环境跑代码
随机推荐
Is it safe to open a securities account? Is there any danger
Free machine learning dataset website (6300+ dataset)
Freefilesync folder comparison and synchronization software
Wechat applet -picker component is repackaged and the disabled attribute is added -- below
Half search, character array definition, character array uses D11
D中不用GC
Range of types
从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭
Notes: the 11th and 12th generation mobile versions of Intel support the native thunderbolt4 interface, but the desktop version does not
虫子 内存管理 下 内存注意点
Sword finger offer 40.41 Sort (medium)
Practice with the topic of bit operation force deduction
DOS command
Research on balloon problem
Record: why is there no lightning 4 interface graphics card docking station and mobile hard disk?
Win10 home vs pro vs enterprise vs enterprise LTSC
hands-on-data-analysis 第三单元 模型搭建和评估
Installation and uninstallation of MySQL software for windows
虫子 运算符重载的一个好玩的
Niuke challenge 48 e speed instant forwarding (tree over tree)