A package for reading gpx files and make some simple plots
Project description
##########
gpxplotter
##########
``gpxplotter`` is a Python package for reading .gpx [1]_ files and make some simple plots.
It uses `matplotlib <http://matplotlib.org/>`_ to create some simple predefined plots and
`mplleaflet <https://github.com/jwass/mplleaflet>`_ for making maps.
Examples
========
Simple example for plotting an elevation profile with heart rate
----------------------------------------------------------------
.. code:: python
from gpxplotter import read_gpx_file
from gpxplotter.mplplotting import plot_elevation_hr_multi_dist, save_fig
from matplotlib import pyplot as plt
plt.style.use('seaborn-poster')
for track in read_gpx_file('test.gpx'):
for i, segment in enumerate(track['segments']):
fig = plot_elevation_hr_multi_dist(track, segment)
save_fig(fig, 'test-{}.png'.format(i))
.. image:: examples/images/test-ele-multi.png
:scale: 50 %
:alt: Example output
:align: center
Simple example for showing a track in a map, colored by heart rate
------------------------------------------------------------------
.. code:: python
from gpxplotter import read_gpx_file
from gpxplotter.mplplotting import plot_map, save_map
for track in read_gpx_file('test.gpx'):
for i, segment in enumerate(track['segments']):
fig = plot_map(track, segment, zcolor='pulse')
save_map(fig, 'test-{}.html'.format(i))
.. image:: examples/images/test-hr-map.png
:scale: 50 %
:alt: Example output
:align: center
Installation
============
gpxplot can be installed via pip:
``pip install gpxplot``
Note
====
The intended usage is for displaying heart rate information together with
other information. If the gpx file does not comtain heart rate information,
the source code will have to be modified accordingly.
References
==========
.. [1] https://en.wikipedia.org/wiki/GPS_Exchange_Format
gpxplotter
##########
``gpxplotter`` is a Python package for reading .gpx [1]_ files and make some simple plots.
It uses `matplotlib <http://matplotlib.org/>`_ to create some simple predefined plots and
`mplleaflet <https://github.com/jwass/mplleaflet>`_ for making maps.
Examples
========
Simple example for plotting an elevation profile with heart rate
----------------------------------------------------------------
.. code:: python
from gpxplotter import read_gpx_file
from gpxplotter.mplplotting import plot_elevation_hr_multi_dist, save_fig
from matplotlib import pyplot as plt
plt.style.use('seaborn-poster')
for track in read_gpx_file('test.gpx'):
for i, segment in enumerate(track['segments']):
fig = plot_elevation_hr_multi_dist(track, segment)
save_fig(fig, 'test-{}.png'.format(i))
.. image:: examples/images/test-ele-multi.png
:scale: 50 %
:alt: Example output
:align: center
Simple example for showing a track in a map, colored by heart rate
------------------------------------------------------------------
.. code:: python
from gpxplotter import read_gpx_file
from gpxplotter.mplplotting import plot_map, save_map
for track in read_gpx_file('test.gpx'):
for i, segment in enumerate(track['segments']):
fig = plot_map(track, segment, zcolor='pulse')
save_map(fig, 'test-{}.html'.format(i))
.. image:: examples/images/test-hr-map.png
:scale: 50 %
:alt: Example output
:align: center
Installation
============
gpxplot can be installed via pip:
``pip install gpxplot``
Note
====
The intended usage is for displaying heart rate information together with
other information. If the gpx file does not comtain heart rate information,
the source code will have to be modified accordingly.
References
==========
.. [1] https://en.wikipedia.org/wiki/GPS_Exchange_Format
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpxplotter-0.0.3.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file gpxplotter-0.0.3.tar.gz
.
File metadata
- Download URL: gpxplotter-0.0.3.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
069430430980dc049000a4a9138c690cea82f498744f20cae1ddd2226f17a037
|
|
MD5 |
1e8b470328995d94660923127e6e71b6
|
|
BLAKE2b-256 |
81aad432fedf6680ade7200a7e966594d5446309d13d03c6846d8cf57bb1c992
|
File details
Details for the file gpxplotter-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: gpxplotter-0.0.3-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ca194f323c8232df22347be15a3083bafabc7118923621c76bf357b7100b85c8
|
|
MD5 |
ce9efb7e9facb0d9b97e8c0d068103c0
|
|
BLAKE2b-256 |
233de534a4e7c199cea13c9ce5abda656ea747df60224387f11ff2db30dc52aa
|