python matplotlib描画散点図(メッシュ)
1125 ワード
"""
matplotlib ( )
x y
:
date:
x1 :x , ( : [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0]])
y1 :y , ( : [[0, 0, 0, 0, 0]])
size: ( : 40)
title_list : title x name ( : title_list = [u' 1',u' 2'])
img_save_url : ( :C:/pythonProject/ tool/)
area_list :
: , title
"""
def show_scatter(x1,y1,size,title_list,img_save_url,area_list):
for i in range(0, len(x1)):
plt.rcParams['figure.figsize'] = (18.0, 15.0) # figure_size
plt.rcParams['image.interpolation'] = 'nearest' # interpolation style
plt.rcParams['image.cmap'] = 'gray' # style
#
plt.rcParams['font.sans-serif'] = ['Simhei']
fig, ax = plt.subplots()
ax.scatter(x1[i], y1, c='#FF8355', s=size)
ax.set_ylabel(u' ', fontsize=25) # y
ax.set_xlabel(title_list[i], fontsize=25) # x
ax.set_title(area_list[i] +titl