Get the Cartesian coordinate in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

Get the Cartesian coordinate in python

I want to create a python program where I can move a little point, and depending where is the point, I want to get the Cartesian coordinate of the point, but... I'm not sure how to start something like that... anyone has any idea about how to program something like that or a little example?

30th Jun 2018, 6:04 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
5 Answers
+ 17
use something like qgis/pyqgis
30th Jun 2018, 6:49 PM
Gustavo Soares
Gustavo Soares - avatar
+ 9
find the distance between. #1 the xcenter of the point and 0-origin of the x-axis #2 the ycenter of the point and 0-origin of the y-axis assuming your graph has no negative points. then your coordinates will be (distance X,distanceY). scale it yourself
30th Jun 2018, 6:40 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 4
Brains🇳🇬 I see, how can I program something like this in python? is there some modules where I can use to achieve this?
30th Jun 2018, 3:11 PM
Eduardo Perez Regin
Eduardo Perez Regin - avatar
+ 4
Try turtle or tkinter canvas (both doesn't run on SL)
30th Jun 2018, 8:13 PM
Tim
Tim - avatar
+ 1
thx to all! now I have a hint about how to start :)
8th Jul 2018, 12:35 AM
Eduardo Perez Regin
Eduardo Perez Regin - avatar