From f647fd1b8662caf30070d0c4e6683ff041b549d5 Mon Sep 17 00:00:00 2001 From: Shuaib Nuruddin <95973048+ShuaibNuruddin@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:33:30 +0200 Subject: [PATCH] Update tutorial.rst --- docs/tutorial.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 660053845..7d3235d14 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -392,7 +392,7 @@ The main class in the maps module is the Map class. In this code we create a def .. ipython:: python - from datascience.maps import Map # import the map function + from datascience.maps import Map # import the Map class default_map = Map() # generate a default map default_map.show() # display the map @@ -403,7 +403,8 @@ The main class in the maps module is the Map class. In this code we create a def The maps modules also allows you to make custom maps with markers, circles and regions. .. ipython:: python - + from datascience.maps import Map, Marker, Circle, Region # import the Map, Marker, Circle and Region class + # generates markers with custom sets of coordinates, colors and popups marker1 = Marker(37.372, -121.758, color="green", popup="My green marker") marker2 = Marker(37.572, -121.758, color="orange", popup="My orange marker")