> For the complete documentation index, see [llms.txt](https://learnpython.strivemath.com/p5-python-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnpython.strivemath.com/p5-python-web/reference/controlling-the-environment/coordinatemode.md).

# coordinateMode()

changes where the coordinates originate from

### Examples

```python
coordinateMode(TOP_LEFT)
```

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FWpmPNB2b70Q54ZpKXbBO%2Funtitled.png?alt=media\&token=51a7f76d-cdf8-4bd9-b286-a357eefa8da4)

```python
coordinateMode(BOTTOM_LEFT)
```

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FiWv9hC55CAZGS1aOsVK9%2Funtitled%20\(1\).png?alt=media\&token=5404ead8-85bc-4448-a3c8-6b1b45672467)

Sets the coordinate mode to TOP\_LEFT or BOTTOM\_LEFT. Coordinate mode is set to BOTTOM\_LEFT by default. BOTTOM\_LEFT mode mimics the standard mathematical setup where coordinate (0,0) is in the bottom left and the y-axis increases upwards.

```python
coordinateMode(MODE)
```

<table><thead><tr><th width="109">Input</th><th width="265">Description</th><th>Value(s)</th><th>Default</th></tr></thead><tbody><tr><td>MODE</td><td>coordinate mode to be set</td><td>TOP_LEFT<br>BOTTOM_LEFT</td><td>BOTTOM_LEFTpy</td></tr></tbody></table>

see [drawTickAxes](/p5-python-web/reference/math/drawtickaxes.md) for more info.

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
