2023-09-17から1日間の記事一覧

【matplotlib】グラフの目盛線を消したい【python】

pythonでプロットをすると、グラフの目盛線がついてくる。 この目盛線を消したくなった。 import matplotlib.pyplot as plt y = np.array([1, 2, 3, 4]) fig = plt.figure(figsize=(4, 4))ax1 = fig.add_subplot(111)ax1.bar(y, y) plt.show() 数字の隣に必…