The answers in the stackoverflow thread you linked work for me, e.g.

w, h = plt[:figaspect](0.5)
figure(figsize=(w,h))
plot(rand(10))

Reply via email to