Scientific Notation

Default format for exponents changed from e-notation to power of 10.

In [1]:
from lets_plot import *
In [2]:
LetsPlot.setup_html()
In [3]:
data = dict(
    name = ["electron", "muon", "tau"],
    mass = [9.1e-28, 1.9e-25, 3.2e-24],
)
In [4]:
ggplot(data) + \
    geom_point(aes(x="mass"), y=0, tooltips=layer_tooltips().line("@name").line("@|@{mass}g")) + \
    theme(axis_title_y='blank', axis_text_y='blank') + \
    ggtitle("Masses of charged leptons in grams")
Out[4]: