|
From: Dmitry V. <df...@gm...> - 2010-10-22 06:47:47
|
Hello,
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')
ax.yaxis.set_major_formatter(majorFormatter)
====
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?
Thanks.
--
Best Regards,
Dmitry Vinokurov
+7 905 862 17 11
skype: d.a.vinokurov
<df...@gm...>
|