Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #LinearRegression [In the making]
- class summon:
- def __init__(self, x,X,Y):
- self.x = x
- x = x + 3
- y = x + 2
- cc = [[' 'for i in range(x)]for j in range(y)]
- summon.Graph(x,cc,X,Y)
- def Graph(x,cc,X,Y):
- j = x-1
- for i in range(0,x-1):
- #X Axis
- cc[x+1][i+1] = "%d"%(i)
- cc[x][i+1] = "_"
- cc[x][x-1] = "x"
- cc[x+1][x-1] = " "
- #Y Axis
- j = j-1
- cc[i+1][0] = "%d"%(j+1)
- cc[i+1][1] = "|"
- cc[x][1] = "L"
- cc[0][1] = "y"
- summon.Plot(cc,X,Y,x)
- summon.Display(cc)
- def Display(cc):
- for items in cc:
- print(items)
- def Plot(cc,X,Y,x):
- coal = x
- r = 2
- for i in range(Y):
- coal = coal - r
- coal = coal
- cc[coal+Y][X+1] = "o"
- summon(6,1,5)
- #Syntax
- #Summon(Size,plotX,plotY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement