Skip to content

Commit

Permalink
Merge pull request #210 from Jammy2211/feature/delaunay_visual
Browse files Browse the repository at this point in the history
feature/delaunay_visual
  • Loading branch information
Jammy2211 authored Nov 18, 2024
2 parents 9602c16 + 1c7382c commit 2f33282
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions autogalaxy/plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
VectorYXQuiver,
PatchOverlay,
InterpolatedReconstruction,
DelaunayDrawer,
VoronoiDrawer,
OriginScatter,
MaskScatter,
Expand Down
4 changes: 4 additions & 0 deletions autogalaxy/plot/mat_plot/two_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
)

0 comments on commit 2f33282

Please sign in to comment.