+ 3

How do you draw the graph of a function using turtle module in python?

drawing a graph

21st Sep 2017, 6:05 PM
Hannah
Hannah - avatar
2 odpowiedzi
0
turtle module is not best option to draw graph. try pygame module...
2nd Oct 2017, 1:34 PM
Kevin AS
Kevin AS - avatar
0
To use turtle... import turtle tut=turtle.Pen() tut.left(45) #shows the degrees to the left the turtle will face tut.forward(200) #shows the distance that the turtle will draw tut.right(180) tut.backward(100) tut.pensize(5) # the default pen size is 3 tut.begin_fill() #used to fill the inside with color tut.end_fill() #stops the color filling There are other functions anyway,, but drawing with turtle ain't that much easy,, pygame will be better, or panda3
4th Oct 2017, 4:17 PM
Paul Osakue
Paul Osakue - avatar