Skip to content

Commit ec5af95

Browse files
Jammy2211Jammy2211
authored andcommitted
more stuff moved over
1 parent 5f3edd1 commit ec5af95

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

autoarray/plot/wrap/two_d/array_overlay.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class ArrayOverlay(AbstractMatWrap2D):
1717

1818
def overlay_array(self, array, figure):
1919
aspect = figure.aspect_from(shape_native=array.shape_native)
20-
extent = array.extent_of_zoomed_array(buffer=0)
20+
array_zoom = array.zoomed_around_mask(buffer=0)
21+
extent = array_zoom.geometry.extent
2122

2223
plt.imshow(
2324
X=array.native._array, aspect=aspect, extent=extent, **self.config_dict

autoarray/structures/arrays/uniform_2d.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from autoconf.fitsable import ndarray_via_fits_from, header_obj_from
88

99
from autoarray.mask.mask_2d import Mask2D
10+
from autoarray.mask.derive.zoom_2d import Zoom2D
1011
from autoarray.structures.abstract_structure import Structure
1112
from autoarray.structures.header import Header
1213
from autoarray.structures.arrays.uniform_1d import Array1D

0 commit comments

Comments
 (0)