Advertisement
elena1234

how to replace scientific notation in Python

May 5th, 2023 (edited)
1,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | Source Code | 0 0
  1. fig = plt.figure(figsize=(10,8))
  2. sns.set(font_scale=2.5)
  3. plt.bar(df_year_quantity['TransactionDate'], df_year_quantity['Quantity'])
  4. plt.yticks([4000000,5000000,6000000,7000000], ['4 000 000','5 000 000','6 000 000' ,'7 000 000'])
  5. plt.show()
  6.  
  7. ###########################################
  8. plt.ticklabel_format(useOffset=False, style='plain')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement