File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ def _add_polygons_to_axes(
195
195
axes_scale = 100.0 ,
196
196
add_labels = False ,
197
197
which_labels = "ID" ,
198
- which_ids = [] ,
198
+ which_ids = None ,
199
199
** kwargs ,
200
200
):
201
201
"""
@@ -247,7 +247,7 @@ def _add_polygons_to_axes(
247
247
248
248
use_keys = not which_labels .lower ().startswith ("name" )
249
249
250
- if not which_ids :
250
+ if which_ids is None :
251
251
which_ids = list (self .fields .keys ())
252
252
253
253
for k , cfg in self .fields .items ():
@@ -412,7 +412,7 @@ def add_to_axes(
412
412
axes_scale = 100.0 ,
413
413
add_labels = False ,
414
414
which_labels = "ID" ,
415
- which_ids = [] ,
415
+ which_ids = None ,
416
416
label_at_centroid = True ,
417
417
** kwargs ,
418
418
):
@@ -472,7 +472,7 @@ def add_to_axes(
472
472
if not np .isclose (self .default_scale , axes_scale ):
473
473
rescale_by = axes_scale / self .default_scale
474
474
475
- if not which_ids :
475
+ if which_ids is None :
476
476
which_ids = list (self .fields .keys ())
477
477
478
478
if add_labels :
You can’t perform that action at this time.
0 commit comments