Indeed, this simple approach doesn’t seem to work when asking for zero digits for numbers < 1.
Another alternative using Printf.jl:
using Printf
plot(x, x*1e-6, yformatter=x->join(split(@sprintf("%.0e", x), 'e'), "×10^{") * "}")
Indeed, this simple approach doesn’t seem to work when asking for zero digits for numbers < 1.
Another alternative using Printf.jl:
using Printf
plot(x, x*1e-6, yformatter=x->join(split(@sprintf("%.0e", x), 'e'), "×10^{") * "}")