Skip to content

Commit

Permalink
Update tutorial.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuaibNuruddin authored Dec 17, 2023
1 parent 4f62c14 commit f647fd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
Expand Down

0 comments on commit f647fd1

Please sign in to comment.