Guest User

Untitled

a guest
Jul 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. from matplotlib.widgets import TextBox
  3.  
  4. axbox = plt.axes([0.4, 0.5, 0.2, 0.075])
  5.  
  6. initial_text = "Change me"
  7. text_box = TextBox(axbox, '', initial=initial_text)
  8. text_box.position_cursor(len(initial_text)) # RuntimeError!
  9.  
  10. plt.show()
  11. #text_box.position_cursor(len(initial_text))
  12.  
  13. RuntimeError: Cannot get window extent w/o renderer
Add Comment
Please, Sign In to add comment