From c8cd7966d6e9270ff0713ae5b0999eb221241207 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Wed, 20 Sep 2023 12:13:11 -0500 Subject: [PATCH] Use `shape.get_verts()` to get vertices This makes the ellipses in the polar view appear much smoother. Signed-off-by: Patrick Avery --- hexrd/ui/mask_regions_dialog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hexrd/ui/mask_regions_dialog.py b/hexrd/ui/mask_regions_dialog.py index bb9da8852..897195776 100644 --- a/hexrd/ui/mask_regions_dialog.py +++ b/hexrd/ui/mask_regions_dialog.py @@ -98,8 +98,7 @@ def update_interactive_template(self, event): if self.selection == 'Ellipse': center = [(width / 2 + x0), (height / 2 + y0)] shape = patches.Ellipse(center, width, height) - verts = shape.get_patch_transform().transform( - shape.get_path().vertices[:-1]) + verts = shape.get_verts() verts = add_sample_points(verts, 300) self.interactive_template.template.set_xy(verts) self.interactive_template.center = (