When I plot graph with values 10^5 and more at y axis, the labels are too long and run out of the picture borders. So I get "600000" instead of "1600000" at y axis or something like this. Tried to use
majorFormatter = ticker.FormatStrFormatter('%e')
but it became even worse -- "00e+00", "00e+05", "00e+06", i.e. first digits run out of picture border or I see only part of digit.
Is it possible to make matplotlib automatically change picture size due to it's content? Or maybe there is some other way to solve my problem?
+7 905 862 17 11