How do you want to display 10^15 ? How 1000000000000000 ?! Another answer relates to the default formatting format, when you switch to the log scale, use LogFormatter , which has a different set of rules. You can go back to ScalarFormatter and disable the offset
import matplotlib.pyplot as plt import matplotlib.ticker as mticker plt.ion() possible_chars = 94 max_length = 8 pw_possibilities = [] for num_chars in range(1, max_length+1): pw_possibilities.append(possible_chars**num_chars) x = range(1, max_length+1) y = pw_possibilities

See http://matplotlib.org/api/ticker_api.html for all available Formatter classes.
(this image is created from the 2.x branch, but should work with all the latest version of mpl)
tacaswell Oct 31 '16 at 3:46 2016-10-31 03:46
source share