set y axis matplotlib code example
Example 1: set axis plt python
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
Example 2: plot python y axis off
plt.yticks([]) # Command for hiding y-axis
from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
plt.yticks([]) # Command for hiding y-axis