Draw Graph Grid Using Turtle in Python Last Updated : 29 Aug, 2021 Comments Improve Suggest changes Like Article Like Report Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. Approach: Following steps are used : Import turtleSet screenMake turtleDraw the y-axis linesDraw the x-axis linesDraw the x-axis and y-axis with labeling. Below is the implementation : Python3 # import package and making objects import turtle sc=turtle.Screen() trtl=turtle.Turtle() # method to draw y-axis lines def drawy(val): # line trtl.forward(300) # set position trtl.up() trtl.setpos(val,300) trtl.down() # another line trtl.backward(300) # set position again trtl.up() trtl.setpos(val+10,0) trtl.down() # method to draw y-axis lines def drawx(val): # line trtl.forward(300) # set position trtl.up() trtl.setpos(300,val) trtl.down() # another line trtl.backward(300) # set position again trtl.up() trtl.setpos(0,val+10) trtl.down() # method to label the graph grid def lab(): # set position trtl.penup() trtl.setpos(155,155) trtl.pendown() # write 0 trtl.write(0,font=("Verdana", 12, "bold")) # set position again trtl.penup() trtl.setpos(290,155) trtl.pendown() # write x trtl.write("x",font=("Verdana", 12, "bold")) # set position again trtl.penup() trtl.setpos(155,290) trtl.pendown() # write y trtl.write("y",font=("Verdana", 12, "bold")) # Main Section # set screen sc.setup(800,800) # set turtle features trtl.speed(100) trtl.left(90) trtl.color('lightgreen') # y lines for i in range(30): drawy(10*(i+1)) # set position for x lines trtl.right(90) trtl.up() trtl.setpos(0,0) trtl.down() # x lines for i in range(30): drawx(10*(i+1)) # axis trtl.color('green') # set position for x axis trtl.up() trtl.setpos(0,150) trtl.down() # x-axis trtl.forward(300) # set position for y axis trtl.left(90) trtl.up() trtl.setpos(150,0) trtl.down() # y-axis trtl.forward(300) # labeling lab() # hide the turtle trtl.hideturtle()   Output :   Comment More infoAdvertise with us Next Article Draw Graph Grid Using Turtle in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads Draw Panda Using Turtle Graphics in Python Turtle is an inbuilt module in Python. It provides: Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen), and to move the turtle, there are some functions like the forward(), backward(), etc. Prerequisite: Turtle Programming Basics Draw 2 min read Draw Rainbow using Turtle Graphics in Python Turtle is an inbuilt module in Python. It provides: Drawing using a screen (cardboard).Turtle (pen). To draw something on the screen, we need to move the turtle (pen), and to move the turtle, there are some functions like the forward(), backward(), etc. Prerequisite: Turtle Programming Basics Draw 2 min read Python - Draw "GFG" logo using Turtle Graphics Prerequisites: Turtle Programming in Python Turtle is a Python feature like a drawing board, which let us command a turtle to draw all over it! We can use many turtle functions which can move the turtle around. Turtle comes into the turtle library. The turtle module can be used in both object-orient 2 min read Draw Ellipse Using Turtle in Python Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. Approach: The fo 2 min read Draw a car using Turtle in Python Prerequisite: Turtle module, Drawing Shapes There are many modules in python which depict graphical illustrations, one of them is a turtle, it is an in-built module in Python, which lets the user control a pen(turtle) to draw on the screen(drawing board). It is mostly used to illustrate figures, sha 2 min read Draw a Flower using Turtle in Python We are given the task of drawing a flower using Turtle Graphics in Python. Our goal is to create a design that looks like a flower with multiple petals arranged in a circular pattern. We will do this by using loops to repeat the petal shape and turtle commands to draw and rotate the petals, forming 3 min read Draw Diamond shape using Turtle graphics in Python In this article, we are going to learn how to draw the shape of a Diamond using turtle graphics in Python. Turtle graphics: forward(length): moves the pen in the forward direction by x unit.right(angle): rotate the pen in the clockwise direction by an angle x.left(angle): rotate the pen in the antic 2 min read Draw Circle in Python using Turtle Turtle graphics is an engaging way to learn Python programming by visualizing geometric shapes. The turtle module lets you control a turtle to draw lines and shapes on the screen, making it an ideal tool for beginners. Below, we'll explore how to draw circles and create more complex patterns like ta 2 min read Draw house using Turtle programming in Python Python's Turtle module provides a fun and interactive way to create graphics by controlling a turtle (pen) to draw on a screen. In this article, we will use Turtle to draw a simple house with a base, roof, door and windows. Lets see step by step how can we implement this in Python:Step 1: Import Req 3 min read Draw a Hut using turtle module in Python Turtle is a inbuilt module in Python, which has many functions like forward(), backward(), right() and left() etc. You can draw a hut on the screen just by using the turtle module in Python. In this article, we will create a hut using the turtle module. Approach: Import turtleSet the background colo 2 min read Like