Skip to content

Instantly share code, notes, and snippets.

@afonsoaugusto
Created January 10, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afonsoaugusto/c7bbfd96d0d88e3d965823e35ae027f1 to your computer and use it in GitHub Desktop.
Save afonsoaugusto/c7bbfd96d0d88e3d965823e35ae027f1 to your computer and use it in GitHub Desktop.
plano cartesiano em python com as opções de marcação do matplot lib
a = ['-','--','-.',':','.',',','o','v'
,'^','<','>','1','2','3','4','s','p'
,'*','h','H','+','x','D','d','|','_']
b = ['b' ,'g' ,'r' ,'c' ,'m' ,'y' ,'k' ,'w']
pp = []
for i in a:
for j in b:
pp.append(j+i)
for i in pp:
print(i)
dd = [j+i for i in a for j in b]
for i in dd:
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment