Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by matplotlib.org #
 
PREVIOUS NEXT
Tagged: #scientific #notation #matplotlib #python
ADD COMMENT
Topic
Name
8+1 =