絮絮叨叨
tjuarch
这个作者很懒,什么都没留下…
展开
-
matplotlib中创建axes的几种方法
大概有这么几种吧.Figure.add_subplot.Figure.add_axes.pyplot.subplot.pyplot.axes.Figure.subplots.pyplot.subplots1 .Figure.add_subplothttps://matplotlib.org/stable/api/figure_api.html?highlight=figure%20add_subplot#matplotlib.figure.Figure.add_subplotfig = p原创 2021-06-08 01:16:14 · 1317 阅读 · 0 评论 -
matplotlib中设置ax的坐标系
目前能搜索到的方法有两种:第一种plt.figure()plt.subplot(111, projection="lambert")第二种fig = plt.figure()ax = fig.gca(projection='3d')ax = fig.add_subplot(1, 21 1, projection='3d')第二种好一些。原创 2021-03-23 00:07:38 · 1163 阅读 · 0 评论 -
关于python的time模块
关于python的time模块的一般使用套路。time.time() 生成当前的时间戳,格式为10位整数的浮点数。time.localtime() 生成时间元组time.strftime()根据时间元组生成时间格式化字符串。time.strptime()根据时间格式化字符串生成时间元组。time.strptime()与time.strftime()为互操作。time.localtime(...原创 2020-01-29 10:39:50 · 196 阅读 · 0 评论