I have a matrix mEps which is of shape (10, 1042)
, where 10
is the number of assets, and 1042
is the amount of datapoints. I want to show the Q-Q plot for each asset, so I can plot:
for i in range(iN):
sm.qqplot((mEps[i,:]), fit = True, line='q')
However, then I get 10 pictures of Q-Q plots. I would like to have them in one figure, so I have the following code:
fig, axes = plt.subplots(nrows=4, ncols=3, figsize=(15,10))
ax= axes.flatten()
for i in range(iN):
sm.qqplot((mEps[i,:]), fit = True, line='q')
This code creates the figure, but it doesn't fill it with Q-Q plots.. Does anyone know how to do this?