Skip to content

Commit

Permalink
simplify plotting of global mask
Browse files Browse the repository at this point in the history
  • Loading branch information
rocco8773 committed Jan 15, 2025
1 parent 24aa199 commit 87d0c2e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bapsf_motion/gui/configure/motion_builder_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,9 @@ def update_canvas(self):
self.logger.info(f"MB config = {self.mb.config}")

self.mpl_canvas.figure.clear()
ax = self.mpl_canvas.figure.add_subplot(111)
self.mb.mask.plot(
x=self.mb.mask.dims[0],
y=self.mb.mask.dims[1],
ax=ax,
)
ax = self.mpl_canvas.figure.gca()
xdim, ydim = self.mb.mspace_dims
self.mb.mask.plot(x=xdim, y=ydim, ax=ax)

pts = self.mb.motion_list
if pts is not None:
Expand Down

0 comments on commit 87d0c2e

Please sign in to comment.