Fix handling scaling for subplots.
Fix handling scaling for subplots.

Simplified the code so that it works in both cases (subplots and
single figure) by setting xmode resp. ymode.

nschloe/matplotlib2tikz,m-rossi/matplotlib2tikz,dougnd/matplotlib2tikz,danielhkl/matplotlib2tikz