在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

matplotlib如何实现scale刻度

138次阅读
没有评论

共计 1333 个字符,预计需要花费 4 分钟才能阅读完成。

这篇文章主要介绍 matplotlib 如何实现 scale 刻度,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

1.5. 对数或者其他非线性坐标轴
使用 plt.xscal() 来改变坐标轴的刻度

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import NullFormatter # useful for `logit` scale# Fixing random state for reproducibilitynp.random.seed(19680801)# make up some data in the interval ]0, 1[y = np.random.normal(loc=0.5, scale=0.4, size=1000)
y = y[(y   0)   (y   1)]
y.sort()
x = np.arange(len(y))# plot with various axes scalesplt.figure(1)# linearplt.subplot(221)
plt.plot(x, y)
plt.yscale(linear)
plt.title(linear)
plt.grid(True)# logplt.subplot(222)
plt.plot(x, y)
plt.yscale(log)
plt.title(log)
plt.grid(True)# symmetric logplt.subplot(223)
plt.plot(x, y - y.mean())
plt.yscale(symlog , linthreshy=0.01)
plt.title(symlog)
plt.grid(True)# logitplt.subplot(224)
plt.plot(x, y)
plt.yscale(logit)
plt.title(logit)
plt.grid(True)# Format the minor tick labels of the y-axis into empty strings with# `NullFormatter`, to avoid cumbering the axis with too many labels.plt.gca().yaxis.set_minor_formatter(NullFormatter())# Adjust the subplot layout, because the logit one may take more space# than usual, due to y-tick labels like  1 - 10^{-3} plt.subplots_adjust(top=0.92, bottom=0.08, left=0.10, right=0.95, hspace=0.25,
wspace=0.35)
plt.show()

以上是“matplotlib 如何实现 scale 刻度”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注丸趣 TV 行业资讯频道!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计1333字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 67194熟妇在线观看线路1 | 黄色免费观看视频网站 | 久久99热精品免费观看动漫 | 国模冰莲自慰肥美胞极品人体图 | 色人在线| 成人做爰免费视频免费看 | 亚洲国产精品线观看不卡 | 久久精品国产亚洲7777小说 | 欧美激情一区二区三区免费观看 | 丰满多毛的大隂户毛茸茸 | 六月丁香伊人婷婷色琪琪 | 免费视频福利 | 91丨九色丨首页 | 日本一级爽快片淫片高清特级 | 久久国产免费一区二区三区 | 色人阁综合 | 国产视频一区二区 | 丰满爆乳在线播放 | 国产成人无码一区二区在线观看 | 亚洲精品成人av观看 | 欧美va视频| 亚洲欧美日韩国产成人精品影院 | 国产日韩欧美不卡在线二区 | 亚洲综合偷自成人网第页 | 亚洲精品成人久久 | 欧美视频精品 | 色污污网站 | 好男人www在线影院官网 | 亚洲激情五月 | 亚洲综合影视 | 国产精品嫩草影院免费 | 观看在线人视频 | 亚洲第一视频 | 日本一区二区三区四区视频 | 成人永久免费高清 | 国语自产偷拍精品视频偷 | 中文字幕人妻无码系列第三区 | 欧美老熟妇乱子伦视频 | 一道本视频在线观看 | 亚洲综合无码一区二区 | 欧美一区二区三区不卡免费 |