Skip to main content

A package for reading gpx files and make some simple plots

Project description

gpxplotter is a Python package for reading .gpx [1] files and make some simple plots. It uses matplotlib to create some simple predefined plots and mplleaflet for making maps.

Examples

Simple example for plotting an elevation profile with heart rate

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))
Example output

Simple example for showing a track in a map, colored by heart rate

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))
Example output

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gpxplotter, version 0.0.3
Filename, size & hash File type Python version Upload date
gpxplotter-0.0.3-py3-none-any.whl (28.9 kB) View hashes Wheel py3
gpxplotter-0.0.3.tar.gz (19.1 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page