1
上の2つのプロットをしながら私は1つのボックスプロットで、プロットを作るためにseabornとmatplotlibのを使用しています:はAttributeError jupytherノートセル
ax = sns.boxplot(x=data["MEDV"])
もう一つは、私がのスケールを変更れるヒストグラムであります軸:私は別の細胞にそれらを作った場合
g = sns.distplot(data['MEDV'])
plt.ticklabel_format(style='sci', axis='both', scilimits=(0,0))
両方のプロットはうまく動作しますが、私は同じセルを使用する場合:
ax = sns.boxplot(x=data["MEDV"])
g = sns.distplot(data['MEDV'])
plt.ticklabel_format(style='sci', axis='both', scilimits=(0,0))
私は次のエラーを取得:あなたは2つのサブプロット、その中のプロットの一つとそれぞれたい場合
AttributeError: This method only works with the ScalarFormatter.
質問には完全な例がありませんが、boxplotはプロット上にテキストの目盛りのラベルを貼り付けています(数字ではないため、科学的表記法では表示できません)。 – mwaskom