Python_(2/4)[poi]Python_(2/4)エクセルで書けなグラフ | バイオとDX

バイオとDX

バイオ医薬品とDX、データサイエンス

# =============================================================================
# Seabornで、Stripplot(POI用)
# =============================================================================
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

# CSVファイルを読み込み(タイトル行を下記で準備したcsv)
df_1 = pd.read_csv("263RF_231213a.csv")

# stripplotを作成
ax = sns.stripplot(x="seq_type", y="poi", hue="cell_scale", data=df_1)

# 軸ラベル
ax.set_ylabel("poi_percent", fontsize=10)
ax.set_xlabel("seq_type", fontsize=10)

# 軸範囲の設定
ax.set_ylim(0, 105)
#ax.set_xlim(0, 2)

#plt.show()

# stripplotをPNG形式で保管
plt.savefig("result263_poi.png")

# https://qiita.com/kakiuchis/items/f7c830a2b726992a6165