In Python's matplotlib.pyplot
the figsize
command allows you to determine the figure size, eg.
from numpy import linspace, sin
import matplotlib.pyplot as plt
x = linspace(-2,2,100)
y = sin(1.5*x)
plt.figure(figsize=(8,5))
plt.plot(x,y)
plt.savefig('myfigure.pdf')
plt.show()
Is there an equivalent command in Matlab that does this? These old posts show different solutions but none are as clean as Python's figsize
.