My figure has dimensions of figsize=(10,10) and one subplot within it. How can i define the dimension of the subplot to be 8 inches W x 8 inches H regardles the data range the subplot it shows?
EDIT: The reason I am searching for this is that I am trying to create some plots for publication. So I need my plots to have a fixed width and height to be able to be inserted to the manuscrpipt seamsly.
Here's the striped down code:
map_size = [8,8]
fig, ax = plt.subplots(1,1,figsize=map_size)
ax.plot(data)
fig.savefig('img.png', dpi=300,) # figure is the desired size, subplot seems to be scaled to fit to fig