I draw lots of svg,emf pics this term. So today write down some useful operations about pyplot//plt
1 |
font = {'family': 'Times New Roman', 'weight': 'normal', 'size': 15} |
see more:
refto: https://stackoverflow.com/questions/3899980/how-to-change-the-font-size-on-a-matplotlib-plot
散点图出现按label选颜色:
此时使用plt.legend()则会导致大量重复legend信息
加入以下代码:
1 |
from collections import OrderedDict |
近期评论