Just use a larger height value when you instantiate the shape:
from pylab import *
x = linspace(0, 10*pi, 2**10)
y = sin(x)
figure(figsize=(5, 10))
plot(x, y)
show()
Where figsize=(width, height)and by default - (8, 6). Values are in inches (the keyword dpiarg can be used to determine the DPI for the shape, and there is a default value in yours matplotlibrc)
For an already created figure, I believe that there is a method set_size_inches(width, height).
source
share