How to remove the two grey lines (on the far right and top of the attached figure) and keep the two axes lines?
#plt.style.use('Solarize_Light2')
plt.rcParams["figure.figsize"] = (50, 35)
plotdata = pd.DataFrame(result1)
plotdata.plot(kind="bar")
plt.legend(loc=0, prop={'size': 25})
plt.title("Actual Vs. Predicted Stratospheric Ozone Depletion", fontsize=30)
plt.xticks(rotation=0)
plt.xlabel("Index", fontsize=30)
ax.yaxis.offsetText.set_fontsize(50)
plt.ylabel("(kg CFC-11 eq.)", fontsize=30)
plt.tick_params(labelsize=30)
plt.grid(False)
Trial 1:
plt.rcParams["figure.figsize"] = (50, 35)
plotdata = pd.DataFrame(result1)
plotdata.plot(kind="bar")
plt.legend(loc=0, prop={'size': 25})
plt.title("Actual Vs. Predicted Stratospheric Ozone Depletion", fontsize=30)
plt.xticks(rotation=0)
plt.xlabel("Index", fontsize=30)
ax.yaxis.offsetText.set_fontsize(50)
plt.ylabel("(kg CFC-11 eq.)", fontsize=30)
plt.tick_params(labelsize=30)
plt.grid(False)
ax.spines["right"].set_visible(False)
ax.spines["top"].set_visible(False)