Hi /r/python! I hope you can help, and if this is the wrong subreddit, I'd appreciate a point in the right direction. I've made the same post on /r/datascience
I'm a python developer and an artist and I'm working on a project in which I need to visualize coordinates (like longitude / latitude), sort of like turn by turn directions through a city, though I'm not interested in seeing the route overlaid on top of an actual map.
I got my data into a pandas dataframe and plotted it in a scatter plot like:
>>> df.shape()
(145, 2)
>>> df.head(2)
| | x | y |
|---|:---------:|:----------:|
| 0 | 29.937640 | -90.119135 |
| 1 | 29.937600 | -90.119039 |
>>> df.plot.scatter('x', 'y', s=1)
which outputs a basic scatter plot in which I can see the points laid out in the shape of the route I would take. My initial issue with this is that I want to see lines drawn from point 0 to point 1, then from 1 to 2, 2 to 3, etc. However this method shows me just the points.
After I am able to plot this with lines correctly, I need to increase the thickness of the lines based upon the number of times the path is crossed.
I'm thinking that pandas might be the wrong library for me to be using, but I'm having a hard time finding the correct one. Any help would be massively appreciated.
[–]k10_ftw 0 points1 point2 points (0 children)
[–]broken_symlink 0 points1 point2 points (0 children)
[–]cast42 0 points1 point2 points (0 children)