You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method uses the Google map engine to display the content of the GPX file in a HTML page.
46
+
61
47
.. warning:: Requires :py:mod:`~gmplot`.
62
48
63
49
::
@@ -83,6 +69,8 @@ gmplot
83
69
Folium
84
70
^^^^^^
85
71
72
+
The interactive HTML page resulting from this method allows you to visualize the content of a GPX on a nice looking map.
73
+
86
74
.. warning:: Requires :py:mod:`~folium`.
87
75
88
76
::
@@ -109,7 +97,7 @@ Folium
109
97
:alt:Folium plot
110
98
111
99
PaperMap
112
-
^^^^^^
100
+
^^^^^^^^
113
101
114
102
.. warning:: Requires :py:mod:`~papermap`.
115
103
@@ -120,16 +108,112 @@ PaperMap
120
108
# Parse GPX file
121
109
gpx = ezgpx.GPX("file.gpx")
122
110
123
-
# Plot with Folium
111
+
# Plot with Papermap
124
112
gpx.papermap_plot(tile_server="OpenStreetMap",
125
113
size = "a4",
126
114
use_landscape = True,
127
115
scale = 25000,
128
116
dpi = 300,
129
117
add_grid = True,
130
118
grid_size = 1000,
131
-
file_path = "map.pdf"):
119
+
file_path = "map.pdf")
132
120
133
121
.. image:: ../../img/papermap_plot_1.png
122
+
:width:500
123
+
:alt:PaperMap plot
124
+
125
+
Expert Plot
126
+
^^^^^^^^^^^
127
+
128
+
This method creates animations of the activity contained in a GPX file.
129
+
130
+
.. warning:: Requires :py:mod:`~basemap`.
131
+
132
+
::
133
+
134
+
import ezgpx
135
+
136
+
# Parse GPX file
137
+
gpx = ezgpx.GPX("file.gpx")
138
+
139
+
# Create animation with Matplotlib
140
+
gpx.matplotlib_animation(figsize=(16,9),
141
+
size=4,
142
+
color="red",
143
+
cmap=None,
144
+
colorbar=False,
145
+
start_point_color=None,
146
+
stop_point_color=None,
147
+
way_points_color=None,
148
+
background="World_Imagery",
149
+
offset_percentage=0.04,
150
+
dpi=200,
151
+
interval=10,
152
+
fps=24,
153
+
repeat=False,
154
+
title=gpx.name(),
155
+
title_fontsize=15,
156
+
watermark=True,
157
+
file_path="video_1.mp4")
158
+
159
+
Expert Plot
160
+
^^^^^^^^^^^
161
+
162
+
This is the most advanced plotting method built into ezGPX. It allows to plot the path with or without a background map, the elevation profile, the pace profile and other relevant data related to the GPX file as tables or graphs.
0 commit comments