首页 > 技术文章 > 杂记

ldcs 2019-04-25 20:07 原文

1. numpy数组拼接方法

(1)转换为列表后使用append、extend方法

(2)numpy.append(arr, values, axis=None)函数

(3)numpy.concatenate((a1,a2,...), axis=0)函数

2.归一化之后数据转为原始数据

 scaler.inverse_transform

3.python  matplotlib.pyplot.plot  官网学习

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib.pyplot.plot

4. python matplotlib保存pdf去白边

plt.tight_layout()  #加此去周围白边
plt.savefig('figure.pdf')

 

 

 

 

 

 

 

推荐阅读