File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
from matplotlib .gridspec import GridSpec
26
26
from matplotlib_scalebar .scalebar import ScaleBar
27
27
from numpy .random import default_rng
28
- from pandas .api . types import CategoricalDtype , is_categorical_dtype
28
+ from pandas .apis import CategoricalDtype , is_categorical_dtype
29
29
from scanpy import settings
30
30
from scanpy .plotting ._tools .scatterplots import _add_categorical_legend
31
31
from scanpy .plotting .palettes import default_20 , default_28 , default_102
@@ -254,10 +254,10 @@ def get_point_bb(
254
254
255
255
# Split by Point and Polygon:
256
256
tmp_points = sdata .shapes [element_id ][
257
- sdata .shapes [element_id ]["geometry" ].apply (lambda geom : geom .type == "Point" )
257
+ sdata .shapes [element_id ]["geometry" ].apply (lambda geom : geom .geom_type == "Point" )
258
258
]
259
259
tmp_polygons = sdata .shapes [element_id ][
260
- sdata .shapes [element_id ]["geometry" ].apply (lambda geom : geom .type == "Polygon" )
260
+ sdata .shapes [element_id ]["geometry" ].apply (lambda geom : geom .geom_type == "Polygon" )
261
261
]
262
262
263
263
if not tmp_points .empty :
You can’t perform that action at this time.
0 commit comments