prof-rossetti / intro-to-python

An Introduction to Programming in Python
Other
97 stars 244 forks source link

Matplotlib Bar Charts - Removing Scientific Notation #40

Open s2t2 opened 4 years ago

s2t2 commented 4 years ago

... in the Chart Gallery exercise. Some students were seeing scientific notation to represent the large numbers. And said they were able to solve this with code like:

plt.gcf().axes[0].xaxis.get_major_formatter().set_scientific(False)