当前位置:网站首页>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 
边栏推荐
- D check type is pointer
- [jsoi2015] string tree
- [cqoi2015] task query system
- FreeFileSync 文件夹比较与同步软件
- Use performance to see what the browser is doing
- "Scoi2016" delicious problem solution
- 从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭
- Educational Codeforces Round 117 (Rated for Div. 2)E. Messages
- Sword finger offer 18.22.25.52 Double pointer (simple)
- It is better and safer to choose which securities company to open an account for flush stock
猜你喜欢

Range of types

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

Pychar remotely connects to the server to run code

Codeforces Global Round 21A~D

Global variable vs local variable

Free machine learning dataset website (6300+ dataset)

2021-10-18 character array

Generation and rendering of VTK cylinder

Sword finger offer 45.61 Sort (simple)

免费的机器学习数据集网站(6300+数据集)
随机推荐
Matlab programming related knowledge
Experience sharing of mathematical modeling: comparison between China and USA / reference for topic selection / common skills
Luogu p4513 xiaobaiguang Park
New specification of risc-v chip architecture
Installation and uninstallation of MySQL software for windows
How to call self written functions in MATLAB
9項規定6個嚴禁!教育部、應急管理部聯合印發《校外培訓機構消防安全管理九項規定》
Niuke challenge 53:c. strange magic array
Gee - Global Human Settlements grid data 1975-1990-2000-2014
Codeforces Global Round 21A~D
8.Ribbon负载均衡服务调用
Win10 home vs pro vs enterprise vs enterprise LTSC
Codeforces Round #765 (Div. 2) D. Binary Spiders
RISC-V 芯片架构新规范
Bucket of P (segment tree + linear basis)
Setup instance of layout manager login interface
Wechat applet - bind and prevent event bubble catch
CVPR 2022文档图像分析与识别相关论文26篇汇集简介
[sdoi2013] forest
Memory considerations under bug memory management