Skip to main content

Set figure size

In matplotlib you set figure size as follows [from here]:

import pylab as m
f = m.figure()
f.set_size_inches((2,6))


which will make the figure 2in wide and 6in tall which works at least for SVG export

Comments