- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to repress scientific notation in factorplot Y-axis in Seaborn / Matplotlib?
To repress scientific notation in factorplot Y-axis in Seaborn/Matplotlib, we can use style="plain" in ticklabel_format()method.
Steps
Set the figure size and adjust the padding between and around the subplots.
Make a dataframe with keys, col1 and col2.
The factorplot() has been renamed to catplot().
To repress the scientific notation, use style="plain" in ticklabel_format() method.
To display the figure, use show() method.
Example
from matplotlib import pyplot as plt import pandas as pd import seaborn as sns plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True df = pd.DataFrame({"col1": [1, 3, 5, 7, 1], "col2": [1, 5, 7, 9, 1]}) sns.catplot(y="col1", x="col2", kind='bar', data=df, label="Total", height=3.5) plt.ticklabel_format(style='plain', axis='y') plt.show()
Output
- Related Articles
- How to change the figuresize using Seaborn factorplot in Matplotlib?
- How to change the font size of scientific notation in Matplotlib?
- Show decimal places and scientific notation on the axis of a Matplotlib plot
- How to remove scientific notation from a Matplotlib log-log plot?
- How to set the range of Y-axis for a Seaborn boxplot using Matplotlib?
- How to display numbers in scientific notation in Java?
- Express 5600000 in Scientific notation.
- Prevent scientific notation in matplotlib.pyplot
- How to deactivate scientific notation of numbers in R?
- How can factorplot be used in Seaborn to visualize data in Python?
- How to customize the axis label in a Seaborn jointplot using Matplotlib?
- How to remove scientific notation form base R plot?
- How to specify values on Y-axis in Python Matplotlib?
- How to share secondary Y-axis between subplots in Matplotlib?
- How to change the range of the X-axis and Y-axis in Matplotlib?

Advertisements