- 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
Prevent scientific notation in matplotlib.pyplot
To prevent scientific notation, we must pass style='plain' in the ticklabel_format method.
Steps
Pass two lists to draw a line using plot() method.
Using ticklabel_format() method with style='plain'. If a parameter is not set, the corresponding property of the formatter is left unchanged. Style='plain' turns off scientific notation.
To show the figure, use plt.show() method.
Example
from matplotlib import pyplot as plt plt.plot([1, 2, 3, 4, 5], [11, 12, 13, 14, 15]) plt.ticklabel_format(style='plain') # to prevent scientific notation. plt.show()
Output
- Related Articles
- Express 5600000 in Scientific notation.
- How to display numbers in scientific notation in Java?
- How to deactivate scientific notation of numbers in R?
- How to remove scientific notation form base R plot?
- Express the number of seconds in two years in scientific notation.>
- How to change the font size of scientific notation in Matplotlib?
- How to repress scientific notation in factorplot Y-axis in Seaborn / Matplotlib?
- How to remove scientific notation from a Matplotlib log-log plot?
- How to convert a String containing Scientific Notation to correct JavaScript number format?
- Show decimal places and scientific notation on the axis of a Matplotlib plot
- How to find the mean of very small numbers in numeric form that are represented with scientific notation in R?
- Dot notation vs Bracket notation in JavaScript
- One hectare is equal to 10,000 sq. ( mathrm{m} ). How much will this be in sq. ( mathrm{cm} ) ? Express your answer in scientific notation.
- Scientific Investigation
- Scientific Methods

Advertisements