About 18,900,000 results
Open links in new tab
  1. turtle.setworldcoordinates () function in Python - GeeksforGeeks

    Aug 25, 2021 · This function is used to set up a user-defined coordinate system. This performs a reset. If mode 'world' is already active, all drawings are redrawn according to the new …

  2. Use Python to create 2D coordinate - Stack Overflow

    coordinate = [] for y in range(0, 11): for x in range(0, 11): coordinate.append((x,y)) print(coordinate) For more information on for loops in Python, check out the official wiki page.

  3. Add two sets of coordinates in Python using a class?

    Oct 24, 2013 · return Position(self.x + other.x, self.y + other.y) This will let you add two points together using the '+' operator. You want something like this: def __init__(self, x, y): self.x = x. …

  4. Assigning variable coordinates - Python - Stack Overflow

    Sep 18, 2017 · I need to assign a coordinate to each index in K in the form of a variable (x1,y1),(x2,y2).... Finally, it should be like (x1,y1) for point 12, (x2,y2) for point 13etc. Can …

  5. Turtle Positioning: goto, setpos, setx, sety, setheading

    setpos (also can be used as .setposition()) can be used to set a position for turtle. If you combine it with penup() and pendown() methods you can avoid drawing while positioning the turtle. …

  6. How to Plot List of X, Y Coordinates in Matplotlib?

    Dec 17, 2020 · In this method, the coordinates are simply passed as two lists. Approach. Import module; Create a list for X coordinates; Create a list for Y coordinate; Pass these two lists to …

  7. Python Turtle Graphics: Understanding and Using …

    Apr 26, 2025 · Check Coordinates Make sure all your turtle movements and drawing commands use coordinates within the range defined by setworldcoordinates(). Zoom Out If you need to …

  8. Matplotlib.axes.Axes.set_position() in Python - GeeksforGeeks

    Apr 19, 2020 · The Axes.set_position() function in axes module of matplotlib library is used to set the axes position. Syntax: Axes.set_position(self) Parameters: This method accepts the …

  9. How to change the coordinate system of annotations in Matplotlib

    In order to change the coordinate system, you have to change the transform argument of the text() function. Here are the possibilities: ax.transData: the data coordinates; ax.transAxes: the …

  10. Showing Points Coordinates in a Plot in Python using Matplotlib

    Jul 7, 2021 · Learn how to show points coordinates in a plot using Python's Matplotlib library. This guide provides step-by-step instructions and examples.

  11. Some results have been removed
Refresh