I am trying to make a chart with background as a colormap in python. I am using the following code:
import numpy as np
from matplotlib import cm
import matplotlib.pyplot as plt
x = np.arange(1,50,0.01)
y = 1000*np.sin(x)
yarr = np.vstack((x,))
plt.imshow(yarr, extent=(min(x),max(x), min(y),max(y)), cmap=cm.hot)
plt.plot(x, y, color='cornflowerblue',lw=4)
However, this produces an image looking like:
Is there a way to make the graph look 'normal'? I.e. so that I can what is happening (making the axis area more 'square').

