![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Step by step c++
QT业余爱好者
展开
-
由UV计算风向
通过UV计算风速风向原创 2022-08-21 18:11:45 · 1172 阅读 · 1 评论 -
python存储和读取
1、读取with open('out25.txt','r') as f: fre = [] tx = [] T = [] for line in f: dd,cc,bb=line.split() T.append(float(bb)) tx.append(float(cc)) fre.append(float(dd))T = array(T)tx = array(tx)fre = array(fre)2、原创 2021-09-10 19:57:30 · 188 阅读 · 0 评论 -
subplots用法总结
Figure & Axes例如:fig, axes = plt.subplots(2, 2) # 此处是一个2*2的图axes[0,0] 代表第一个子图的坐标属性(类似上图中多Axes1)..axes[2,2] 代表第四个子图的坐标属性(类似上图中多Axes4)如何画各个子图ax.plot() #还有另一种画图方法plt.plot(),此处忽略。接上图例,可写成,axes[0,1].plot( )多个子图一起合并到一个图上。import numpy as npimpo.原创 2021-05-25 13:55:01 · 2051 阅读 · 0 评论 -
Python 无法用matplotlib来显示图像问题
一、警告信息:UserWarning: Matplotlib is currently using agg, which is a non-GUIbackend, so cannot show the figure。解决办法:1,查看一下目前matplotlib的后端渲染器设置,import matplotlib as mplprint(mpl.get_backend())我的显示是“agg",agg不能将图像渲染出来的,所以需要设置为TkAgg。import matplotlib原创 2021-04-26 14:07:31 · 544 阅读 · 2 评论