Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

hide ticks without hiding grid

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2*np.pi, 100)

fig = plt.figure()
ax = fig.add_subplot(111)

ax.plot(x, np.sin(x))

ax.grid(True)
ax.set_xticklabels([])


plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hide #ticks #hiding #grid
ADD COMMENT
Topic
Name
8+5 =