Package with tool to plot a GPX elevation profile
Project description
GPXProfilePlotter
Tool for plotting a GPX elevation profile
Import plot_gpx_profile function to use:
from gpxprofpy import plot_gpx_profile
Parameters
filename : str GPX file name.
plot_slope: bool, optional Plot slope segments (default: False). If activated, plot segments that are longer than variable SEUIL defined in .params. Segments colors are chosen accordingly to their mean slope, and colors are also defined in .params.
plot_points: bool, optional Plot remarquables points (default: False). If activated, module tries to open a CSV file with the same name as the main GPX file. Remarquable points are red as (distance, label, has_water). Points are then added on the profile, with different styling for start and finish points. Colors are also defined in .params.
save_fig: bool, optional Save plot as png file (default: False). If activated, plot is saved to a png file with the same name as the main GPX file.
Examples
plot_gpx_profile("data/MyGPXFile.gpx")
Plots elevation profile only
plot_gpx_profile("data/MyGPXFile.gpx", True, True, True)
Plots elevation profile, slope segments, remarquables points and saves a png file
plot_gpx_profile("data/MyGPXFile.gpx", save_fig=True)
Plots elevation profile and saves a png file
Changelog
v0.1.0
Major refactoring of the code
Add:
- Tests for basic functions. More to come
- Merging segments tools
Fix:
- Slope segment detection now detect all segments
- Micro segments are detected and merged
v0.0.5
Add:
- README information
v0.0.4
Fix:
- Versioning issues
v0.0.3
Fix:
- Projects URL in toml configuration file
v0.0.2
Initial version
Features to come (in random order)
- Colors choice
- Miles / km option
- Change files names
Known bugs
- When plotting without remarquable points, y limit is badly configured
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpxprofpy-0.1.0.tar.gz.
File metadata
- Download URL: gpxprofpy-0.1.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83cbd7c37145d1749b3ea6a193cdda5d4439a5effe0ec39a6e1335c1ef28331b
|
|
| MD5 |
a44c0f9d4c6a9ae21fab1c6c69faeccb
|
|
| BLAKE2b-256 |
1cde10e377a7b335b3ee3454f6c7ce530944e2659b3c92b2e2a687fc9cf3f34b
|
File details
Details for the file gpxprofpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gpxprofpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caff8a93b58e91aded8cfc80ddc28d466177190f6f54e4f2234e716eb41a606e
|
|
| MD5 |
c1039019cfd03f39d29dc4b09af3316e
|
|
| BLAKE2b-256 |
f1f83f4be5bbe2d9128d12cbf82068fd8cc3b1f39d9720a896a5367ad60ff4fb
|