Skip to main content

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


Project details


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.4.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpxplotter-0.0.4-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file gpxplotter-0.0.4.tar.gz.

File metadata

  • Download URL: gpxplotter-0.0.4.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for gpxplotter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 488a3c455a7390ad7d74d591ac4d962019a845103d37439bcb2097c86cc6719b
MD5 b9043816c6918a941b267f7ca8fd9bc3
BLAKE2b-256 cb1ec1d1cc507dfad7e53261acd4407e5ce5a3370650f6c6d077e6edc41a4fb9

See more details on using hashes here.

File details

Details for the file gpxplotter-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: gpxplotter-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for gpxplotter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 20a09c22ef78dc84aae225a0e030b53d55a527a0d063343400a05bfb0791969d
MD5 dac94728e9ceb28fa4fb1fa65b69789d
BLAKE2b-256 067f9251966e372c1e3c371a4647fad07fa213f7f74421939de2f2ce7f47ee2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page