I want to make the ticks on the right and upper axis invisible and am not sure what the third line should be:
import matplotlib.pyplot as plt plt.plot(X,Y) #
plt.tick_params(top='off', right='off', which='both')
I used above code with 'on' instead of 'off' ,for displaying tick marks on top and right along with default 'bottom'and 'left', in matplotlib 2.0