not x axis labels python
plt.gca().axes.get_xaxis().set_visible(False)
plt.gca().axes.get_yaxis().set_visible(False)
not x axis labels python
plt.gca().axes.get_xaxis().set_visible(False)
plt.gca().axes.get_yaxis().set_visible(False)
python remove x and y values on plots
# Basic syntax:
ax.set_yticklabels([])
ax.set_xticklabels([])
# Example usage:
import matplotlib.pyplot as plt
# Create Figure and Axes instances
fig,ax = plt.subplots(1)
# Make your plot, set your axes labels
ax.plot(range(1, 10),range(10, 1, -1))
ax.set_ylabel('Y Label')
ax.set_xlabel('X Label')
# Turn off tick labels — tick marks remain but values are removed
ax.set_yticklabels([])
ax.set_xticklabels([])
plt.show()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us