当前位置:网站首页>positioner
positioner
2022-04-23 17:58:00 【Feng Ye 520】
import matplotlib.pyplot as mp
import numpy as np
mp.figure(facecolor='lightgray')
locators = [
'mp.NullLocator()',
'mp.MaxNLocator(nbins=3,steps=[1,3,5,7,9])',
'mp.FixedLocator(locs=[0,2.5,5,7.5,10])',
'mp.AutoLocator()',
'mp.IndexLocator(offset=0.5,base=1.5)',
'mp.MultipleLocator()',
'mp.LinearLocator(numticks=6)',
'mp.LogLocator(base=2,subs=[1.0])'
]
n_locators = len(locators)
for i, locator in enumerate(locators):
mp.subplot(n_locators, 1, i + 1)
mp.xlim(0, 10)
mp.ylim(-1, 1)
mp.yticks(())
ax = mp.gca()
ax.spines['left'].set_color('none')
ax.spines['top'].set_color('none')
ax.spines['right'].set_color('none')
ax.spines['bottom'].set_position(('data', 0))
ax.xaxis.set_major_locator(eval(locator))
ax.xaxis.set_minor_locator(mp.MultipleLocator(0.1))
mp.plot(np.arange(11), np.zeros(11), c='none')
mp.text(5, 0.3, locator[3:], ha='center', size=12)
mp.tight_layout()
mp.show()
# Running results :


版权声明
本文为[Feng Ye 520]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230546134331.html
边栏推荐
- Remember using Ali Font Icon Library for the first time
- 油猴网站地址
- 干货 | 快速抽取缩略图是怎么练成的?
- MySQL advanced index [classification, performance analysis, use, design principles]
- Error in created hook: "referenceerror:" promise "undefined“
- Fashion classification case based on keras
- 编译原理 求first集 follow集 select集预测分析表 判断符号串是否符合文法定义(有源码!!!)
- C language array processing batch data
- Go language JSON package usage
- 2022 judgment questions and answers for operation of refrigeration and air conditioning equipment
猜你喜欢

Go's gin framework learning

Go对文件操作

C1小笔记【任务训练篇一】

Anchor location - how to set the distance between the anchor and the top of the page. The anchor is located and offset from the top

Element calculation distance and event object
![MySQL advanced index [classification, performance analysis, use, design principles]](/img/96/b031868602a7b8ba4edd0d74c843b3.png)
MySQL advanced index [classification, performance analysis, use, design principles]

C# 的数据流加密与解密

Classification of cifar100 data set based on convolutional neural network

.104History

Transfer learning of five categories of pictures based on VGg
随机推荐
纳米技术+AI赋能蛋白质组学|珞米生命科技完成近千万美元融资
C language loop structure program
Laser slam theory and practice of dark blue College Chapter 3 laser radar distortion removal exercise
_ FindText error
YOLOv4剪枝【附代码】
31. Next arrangement
Uniapp custom search box adaptation applet alignment capsule
Nanotechnology + AI enabled proteomics | Luomi life technology completed nearly ten million US dollars of financing
Logic regression principle and code implementation
2022年茶艺师(初级)考试模拟100题及模拟考试
MySQL进阶之索引【分类,性能分析,使用,设计原则】
An example of linear regression based on tensorflow
undefined reference to `Nabo::NearestNeighbourSearch
Oil monkey website address
编译原理 求first集 follow集 select集预测分析表 判断符号串是否符合文法定义(有源码!!!)
ES6 new method
On the problem of V-IF display and hiding
Using files to save data (C language)
Open source key component multi_ Button use, including test engineering
Implementation of k8s redis one master multi slave dynamic capacity expansion