Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from itertools import combinations
  2. styles = map(lambda x: x+'-', list('.^o<>1234sp*hH+xDd|_'))
  3. for num, line_style in enumerate(styles, 1):
  4. plt.plot(range(10), [num]*10, line_style, label=line_style)
  5. plt.legend(loc='upper left', bbox_to_anchor=(1, 1))
  6. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement