Skip to content

Commit 5b8cde7

Browse files
committed
add tutorial for two traces on plotly map
1 parent 1245d5a commit 5b8cde7

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

notebooks/tutorials/visualizations.ipynb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,29 @@
247247
"fig = glp.plot_map(state_estimate)\n",
248248
"fig.show()"
249249
]
250+
},
251+
{
252+
"cell_type": "markdown",
253+
"id": "287beec9",
254+
"metadata": {},
255+
"source": [
256+
"You can plot multiple data traces on the same graph as long as the `*` in the `lat_*_deg` and `lon_*_deg` fields is different for each data trace."
257+
]
258+
},
259+
{
260+
"cell_type": "code",
261+
"execution_count": null,
262+
"id": "bd7fbb4b",
263+
"metadata": {},
264+
"outputs": [],
265+
"source": [
266+
"# load a separate data file\n",
267+
"!wget https://raw.githubusercontent.com/Stanford-NavLab/gnss_lib_py/main/data/unit_test/android_2021/Pixel4_ground_truth.csv --quiet -O \"Pixel4_truth.csv\"\n",
268+
"truth_data_second_trace = glp.AndroidGroundTruth2021(\"Pixel4_truth.csv\")\n",
269+
"\n",
270+
"fig = glp.plot_map(state_estimate, truth_data_second_trace)\n",
271+
"fig.show()"
272+
]
250273
}
251274
],
252275
"metadata": {

0 commit comments

Comments
 (0)