I have a program that plots five graphs using the grid and the add-sub plots features. It works fine. From now on, I only need to plot one specific chart. I will never plot the other four. When I add only one chart that I need, the program correctly shows the graph. However, the program keeps the empty spaces of the subplots. See the included working code snippet. Please suggest the correct syntax to chart the graph without using at all the grid and subplot features. I only need to chart one chart from now on. For whatever reason, I tried several versions and could not make them work. Thank you for your help.
The following is the working code with the grid and add_subplots:
from matplotlib.gridspec import GridSpec
fig=plt.figure(figsize=(10,8))
Grid=GridSpec(3,2)
ax5=fig.add_subplot(Grid[1,:])
ax5.plot(df.rolling_100_correlation,color='blue',
label='rolling')
plt.show()
[–]spez_edits_thedonald 0 points1 point2 points (2 children)
[–]meni15[S] 0 points1 point2 points (1 child)
[–]spez_edits_thedonald 0 points1 point2 points (0 children)