Skip to content

Commit

Permalink
Backport PR yt-project#4549: BUG: fix marker plot annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk authored and meeseeksmachine committed Jun 28, 2023
1 parent 91db039 commit b18bfa0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions yt/visualization/plot_modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,18 +1826,20 @@ def __init__(
self.plot_args = {
"color": "white",
"s": 50,
"transform": None,
**(plot_args or {}),
**kwargs,
}
self.coord_system = coord_system
self.transform = None

def __call__(self, plot):
x, y = self._sanitize_coord_system(
plot, self.pos, coord_system=self.coord_system
)
x, y = self._sanitize_xy_order(plot, x, y)
plot._axes.scatter(x, y, marker=self.marker, **self.plot_args)
plot._axes.scatter(
x, y, marker=self.marker, transform=self.transform, **self.plot_args
)
self._set_plot_limits(plot)


Expand Down

0 comments on commit b18bfa0

Please sign in to comment.