- 博客(4)
- 收藏
- 关注
原创 python matplotlib绘图同时支持宋体和timesnewroman
发表论文的时候, 有时候图片中中文和英文同时存在, 且要求不同字体, 搜了很多文章找到一个合适的方法.具体做法是, 全局设置为timesnewroman, 这样坐标轴之类的就是这个字体了;需要用到中文时, 在相应命令中设置字体为宋体. 比如图例的设置:plt.legend(['模拟功率谱', r'$Davenport$功率谱'], fontsize=fontsizeAll,prop={"family" : chineseFont,"size":12},loc="lower left",frameon
2021-10-07 23:32:14
2721
原创 mybatis报错:Caused by: java.sql.SQLException: Parameter #1 is unset
mybatis报错:Caused by: java.sql.SQLException: Parameter #1 is unset详细错误org.springframework.jdbc.UncategorizedSQLException:Error querying database. Cause: java.sql.SQLException: Parameter #1 is unsetThe error may exist in cn/abc/flink/stat/db/cis/aws/dao
2021-08-15 10:40:47
701
原创 Exception in thread “main“ org.apache.spark.SparkException: Task not serializable
Exception in thread “main” org.apache.spark.SparkException: Task not serializable原因:当需要在Driver之间传递变量时,这个变量是需要可以序列化的错误代码错误分析:获取和关闭jedis连接应该在分区内进行,此处相当于在driver处获取了连接,所以需要序列化jedis变量.解决方法:把jedis连接获取放入分区内即可解决此问题.代码 val filteredStream: DStream[JSONOb
2021-04-25 12:41:05
1108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人