Answers for "matplotlib despine"

0

matplotlib despine

# Hide the right and top spines
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
# Only show ticks on the left and bottom spines
ax.yaxis.set_ticks_position('left')
ax.xaxis.set_ticks_position('bottom')

plt.show()
Posted by: Guest on October-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language