I am trying to create subplots that capture the distribution of certain variables; I am using seaborn's distplot function to accomplish this. my problem is that I would like to suppress the scientific notation of my axes and have the values appear as regular numbers.
I have tried suppressing scientific notation both in my Dataframe:
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
f, axes = plt.subplots(3, 1, figsize=(12, 12))
sns.distplot(result['amount'], hist=True, ax=axes[0])
axes[0].set_title('Distribution of Transaction Amount')
axes[0].set_xlim(0, 100000) #----> This was my attempt
sns.distplot(result['oldbalanceDest'], hist=True, ax=axes[1])
axes[1].set_title('Distribution of Old Balance Destination Amounts')
sns.distplot(result['oldbalanceOrg'], hist=True, ax=axes[2])
axes[2].set_title('Distribution of Old Balance Origination Amounts')
plt.tight_layout()
#
I have also tried using the following two options to suppress the scientific notation once I import my dataset as a dataframe. This has been successful, however, when I tried to plot my subplots using the code above, the scientific notation persists.
pd.set_option('display.float_format', lambda x: '%.f' % x)
pd.set_option('precision',3)