Skip to content

Commit

Permalink
#5 #6 #3 Work in progress:
Browse files Browse the repository at this point in the history
-Add speed, pace and ascent_rate to WayPoint
-Enhance matplotlib_plot method
-Update example files
-Update doc
-Add haversine_distance function test

[ci skip]
  • Loading branch information
FABallemand committed Jul 24, 2023
1 parent 9adf468 commit edb6e93
Show file tree
Hide file tree
Showing 7 changed files with 459 additions and 81 deletions.
8 changes: 4 additions & 4 deletions doc/tutorials/plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Matplotlib
gpx = ezgpx.GPX("file.gpx")

# Plot with Matplotlib
gpx.matplotlib_plot(elevation_color=True,
gpx.matplotlib_plot(color="elevation",
start_stop_colors=("green", "red"),
way_points_color="blue",
title=gpx.name(),
Expand All @@ -40,7 +40,7 @@ Matplotlib Basemap Toolkit
gpx = ezgpx.GPX("file.gpx")

# Plot with Matplotlib Basemap Toolkit
gpx.matplotlib_basemap_plot(base_color="darkorange",
gpx.matplotlib_basemap_plot(color="darkorange",
start_stop_colors=("darkgreen", "darkred"),
way_points_color="darkblue",
title=gpx.name(),
Expand Down Expand Up @@ -68,7 +68,7 @@ gmplot
gpx = ezgpx.GPX("file.gpx")

# Plot with gmplot (Google Maps)
gpx.gmplot_plot(base_color="yellow",
gpx.gmplot_plot(color="yellow",
start_stop_colors=("green", "red"),
way_points_color="blue",
zoom=13,
Expand All @@ -94,7 +94,7 @@ Folium

# Plot with Folium
gpx.folium_plot(tiles="OpenStreetMap",
base_color="orange",
color="orange",
start_stop_colors=("green", "red"),
way_points_color="blue",
minimap=True,
Expand Down
20 changes: 10 additions & 10 deletions examples/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
gpx = ezgpx.GPX("file.gpx")

# Plot with Matplotlib
gpx.matplotlib_plot(elevation_color=True,
gpx.matplotlib_plot(color="elevation",
start_stop_colors=("green", "red"),
way_points_color="blue",
title=gpx.name(),
Expand All @@ -16,7 +16,7 @@
file_path="img_1")

# Plot with Matplotlib Basemap Toolkit
gpx.matplotlib_basemap_plot(base_color="darkorange",
gpx.matplotlib_basemap_plot(color="darkorange",
start_stop_colors=("darkgreen", "darkred"),
way_points_color="darkblue",
title=gpx.name(),
Expand All @@ -28,17 +28,17 @@
file_path="img_2")

# Plot with gmplot (Google Maps)
gpx.gmplot_plot(base_color="yellow",
start_stop_colors=("green", "red"),
way_points_color="blue",
zoom=14,
title=gpx.name(),
file_path="map_1.html",
open=False)
gpx.gmplot_plot(color="yellow",
start_stop_colors=("green", "red"),
way_points_color="blue",
zoom=14,
title=gpx.name(),
file_path="map_1.html",
open=False)

# Plot with Folium
gpx.folium_plot(tiles="OpenStreetMap",
base_color="orange",
color="orange",
start_stop_colors=("green", "red"),
way_points_color="blue",
minimap=True,
Expand Down
Loading

0 comments on commit edb6e93

Please sign in to comment.