当前位置:网站首页>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 (I)
- 2021-10-09
- FreeFileSync 文件夹比较与同步软件
- 9 articles, 6 interdits! Le Ministère de l'éducation et le Ministère de la gestion des urgences publient et publient conjointement neuf règlements sur la gestion de la sécurité incendie dans les établ
- mysql配置提高数据插入效率
- When drawing with origin, capital letter C will appear in the upper left corner of the chart. The removal method is as follows:
- Introduction to 26 papers related to CVPR 2022 document image analysis and recognition
- Online bull Blogger
- 程序员必备,一款让你提高工作效率N倍的神器uTools
- 虫子 STL string 下 练习题
猜你喜欢

windows版MySQL软件的安装与卸载

Self created notes (unique in the whole network, continuously updated)

8. Ribbon load balancing service call

Generation and rendering of VTK cylinder

2021-10-09

A must for programmers, an artifact utools that can improve your work efficiency n times

New specification of risc-v chip architecture

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

How to convert data in cell cell into data in matrix

Wechat applet Registration Guide
随机推荐
Linear basis
虫子 内存管理 下 内存注意点
It is better and safer to choose which securities company to open an account for flush stock
[cqoi2015] task query system
C language | the difference between heap and stack
Codeforces Global Round 21A~D
Introduction to 26 papers related to CVPR 2022 document image analysis and recognition
数学建模经验分享:国赛美赛对比/选题参考/常用技巧
8. Ribbon load balancing service call
DOS command
ThreadLocal giant pit! Memory leaks are just Pediatrics
Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)
Sword finger offer 18.22.25.52 Double pointer (simple)
ICML 2022 | LIMO: 一种快速生成靶向分子的新方法
Postman自动化接口测试
Bucket of P (segment tree + linear basis)
ThreadLocal巨坑!内存泄露只是小儿科...
C language ---getchar() and putchar()
Win10 home vs pro vs enterprise vs enterprise LTSC
New specification of risc-v chip architecture