Check out example codes for "plt hide axis ticks". It will help you in understanding the concepts better.

Code Example 1

pythonCopyimport matplotlib.pyplot as plt  plt.plot([0, 10], [0, 10]) plt.xlabel("X Label") plt.ylabel("Y Label")  ax = plt.gca() ax.axes.xaxis.set_visible(False) ax.axes.yaxis.set_visible(False)  plt.grid(True) plt.show()

Learn ReactJs, React Native from akashmittal.com