Skip to content

Commit d967880

Browse files
committed
Rename plot_sample_location_mapbox(), ..._geo(). Add hover_data=location_columns.
1 parent fa7736f commit d967880

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

malariagen_data/anoph/sample_metadata.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ def cohorts(
11931193
kwargs="Passed through to px.scatter_mapbox().",
11941194
),
11951195
)
1196-
def sample_location_mapbox(
1196+
def plot_sample_location_mapbox(
11971197
self,
11981198
*,
11991199
sample_sets: Optional[base_params.sample_sets],
@@ -1243,6 +1243,7 @@ def sample_location_mapbox(
12431243
category_orders=category_orders,
12441244
color_discrete_sequence=color_discrete_sequence,
12451245
hover_name=hover_name,
1246+
hover_data=location_columns,
12461247
width=width,
12471248
height=height,
12481249
**kwargs,
@@ -1267,7 +1268,7 @@ def sample_location_mapbox(
12671268
kwargs="Passed through to px.scatter_mapbox().",
12681269
),
12691270
)
1270-
def sample_location_geo(
1271+
def plot_sample_location_geo(
12711272
self,
12721273
*,
12731274
sample_sets: Optional[base_params.sample_sets],
@@ -1317,6 +1318,7 @@ def sample_location_geo(
13171318
width=width,
13181319
color=color,
13191320
hover_name=hover_name,
1321+
hover_data=location_columns,
13201322
category_orders=category_orders,
13211323
color_discrete_sequence=color_discrete_sequence,
13221324
fitbounds=fitbounds,

0 commit comments

Comments
 (0)