Skip to content

Commit

Permalink
make sure hexbin collections are not added multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelquast committed Apr 3, 2024
1 parent be1bf02 commit acd7ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eomaps/_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def on_fetch_bg(self, layer=None, bbox=None, check_redraw=True):

coll.set_label("Dataset " f"({self.m.shape.name} | {self.z_data.shape})")

if self.m.shape.name not in ["scatter_points", "contour"]:
if self.m.shape.name not in ["scatter_points", "contour", "hexbin"]:
# avoid use "autolim=True" since it can cause problems in
# case the data-limits are infinite (e.g. for projected
# datasets containing points outside the used projection)
Expand Down

0 comments on commit acd7ce6

Please sign in to comment.