From ae60a5a454b532668ebf85077fbccd336a4d0c24 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Thu, 14 Nov 2024 18:06:25 +0000 Subject: [PATCH] DelaunayDrawer --- autogalaxy/plot/__init__.py | 1 + autogalaxy/plot/mat_plot/two_d.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/autogalaxy/plot/__init__.py b/autogalaxy/plot/__init__.py index 66f83252..81623d62 100644 --- a/autogalaxy/plot/__init__.py +++ b/autogalaxy/plot/__init__.py @@ -29,6 +29,7 @@ VectorYXQuiver, PatchOverlay, InterpolatedReconstruction, + DelaunayDrawer, VoronoiDrawer, OriginScatter, MaskScatter, diff --git a/autogalaxy/plot/mat_plot/two_d.py b/autogalaxy/plot/mat_plot/two_d.py index d2f37ca2..eebc4404 100644 --- a/autogalaxy/plot/mat_plot/two_d.py +++ b/autogalaxy/plot/mat_plot/two_d.py @@ -30,6 +30,7 @@ def __init__( vector_yx_quiver: Optional[aplt.VectorYXQuiver] = None, patch_overlay: Optional[aplt.PatchOverlay] = None, interpolated_reconstruction: Optional[aplt.InterpolatedReconstruction] = None, + delaunay_drawer: Optional[aplt.DelaunayDrawer] = None, voronoi_drawer: Optional[aplt.VoronoiDrawer] = None, origin_scatter: Optional[aplt.OriginScatter] = None, mask_scatter: Optional[aplt.MaskScatter] = None, @@ -120,6 +121,8 @@ def __init__( voronoi_drawer Interpolations the reconstruction of a `Mapper` object from its irregular grid (e.g. Delaunay, Voronoi) to a uniform 2D array and plots it via `plt.imshow()`. + delaunay_drawer + Draws a colored Delaunay mesh of pixels using `plt.tripcolor`. voronoi_drawer Draws a colored Voronoi mesh of pixels using `plt.fill`. origin_scatter @@ -203,6 +206,7 @@ def __init__( contour=contour, grid_plot=grid_plot, interpolated_reconstruction=interpolated_reconstruction, + delaunay_drawer=delaunay_drawer, voronoi_drawer=voronoi_drawer, use_log10=use_log10, )