Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

matplotlib display axis in scientific notation

plt.ticklabel_format(axis="x", style="sci", scilimits=(0,0))
Comment

scientific notation matplotlib python

'''For example 0.000006 tick will be shown as 6e-6 or 6x10^(-6) depending
on the style parameter, this conversion is set by ticklabel_format as 
below:'''
n = -6 # n is an exponet of base 10. Change 
axe.ticklabel_format(axis='y', style='sci', scilimits=(n,n))
Comment

PREVIOUS NEXT
Code Example
Python :: how to move file from one location to another with python 
Python :: import py to exe 
Python :: python record screen 
Python :: group by count dataframe 
Python :: .annotate unique distinct 
Python :: replace column values pandas 
Python :: upgrade to latest django version 
Python :: gdscript top-down 2d movement 
Python :: urllib python 
Python :: import matplotlib python 
Python :: choosing the correct lower and upper bounds in cv2 
Python :: how to get total number of rows in listbox tkinter 
Python :: django templateview 
Python :: calculate the addition of two lists in python 
Python :: pandas add a column with loc 
Python :: python test if value is np.nan 
Python :: print decimal formatting in python 
Python :: streamlit button to load a file 
Python :: django admin order by 
Python :: dont filter= true in scrapy 
Python :: how to convert a list into string with  
Python :: import crypto python 
Python :: regex all words longer than n 
Python :: resize multiple images to same size python 
Python :: is root node an internal node 
Python :: how to import mnist dataset keras 
Python :: position in list python 
Python :: pandas extract month year from date 
Python :: how to add scrollbar to listbox in tkinter 
Python :: invoice parsing ocr python 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =