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