+ 3
How do you draw the graph of a function using turtle module in python?
drawing a graph
2 Answers
0
turtle module is not best option to draw graph. try pygame module...
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