0
私の質問を正しく質問する方法がわかりません。 ログログプロットでカスタムx、yティックを設定しようとしています。私は答えhere後 、Matplotlibがログログプロットのティックラベルを重複しています
fig1, ax1 = plt.subplots()
ax1.plot([10, 100, 1000], [1,2,3])
ax1.set_xscale('log')
ax1.set_yscale('log')
ax1.set_xticks([20, 200, 500])
ax1.set_yticks([1, 2,3])
ax1.get_xaxis().set_major_formatter
(matplotlib.ticker.ScalarFormatter())
ax1.get_yaxis().set_major_formatter
(matplotlib.ticker.ScalarFormatter())
これは軸の上で重複ticklabelsになります。 これはなぜ起こっているのですか?
私は検索の多くの後、解決策を見つけることができませんでしたので。私はそれを投稿した。 重複としてマークして元のファイルを指していただきありがとうございます。 –