Last active
December 13, 2018 08:51
-
-
Save tkazusa/c85231e8070cfb67371ec161aea001e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
クラスごとにサブプロットで散布図見た。 | |
""" | |
for Keys, labels in zip(SampleKeys, classlabels): | |
w = 10 | |
n = len(Keys) | |
h = math.floor(n/w) if n%w==0 else math.floor(n/w) + 1 | |
fig, ax = plt.subplots(h, w, figsize=(15, 2*h)) | |
ax = ax.reshape(-1,) | |
for i, key in enumerate(Keys): | |
x = np.array(df_cels[df_cels['SampleKey']==key]["CB_FLL_P"]) | |
y = np.array(df_cels[df_cels['SampleKey']==key]["CB_FSC_P"]) | |
g = ax[i].scatter(x,y,s=2,alpha=0.05) | |
g = ax[i].set_title(key) | |
g = ax[i].set_xlim(0,255) | |
g = ax[i].set_ylim(0,255) | |
title = str(labels) | |
fig.suptitle(title, fontsize=15) | |
plt.subplots_adjust(top=0.85) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment