for spine in ['right', 'left', 'top', 'bottom']:
        plt.gca().spines[spine].set_visible(False)