Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = np.linspace(-3, 5, 1000)
- y = 2 * x + 3
- plt.plot(x, y)
- ax = plt.gca()
- ax.spines["bottom"].set_position("zero")
- ax.spines["left"].set_position("zero")
- xticks = ax.xaxis.get_major_ticks()
- xticks[4].label1.set_visible(False)
- ax.spines["top"].set_visible(False)
- ax.spines["right"].set_visible(False)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement