Advertisement
viraco4a

Untitled

Apr 9th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. x = np.linspace(-3, 5, 1000)
  2. y = 2 * x + 3
  3. plt.plot(x, y)
  4. ax = plt.gca()
  5. ax.spines["bottom"].set_position("zero")
  6. ax.spines["left"].set_position("zero")
  7. xticks = ax.xaxis.get_major_ticks()
  8. xticks[4].label1.set_visible(False)
  9. ax.spines["top"].set_visible(False)
  10. ax.spines["right"].set_visible(False)
  11. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement