Skip to content

Commit 006bbee

Browse files
Jammy2211Jammy2211
authored andcommitted
fit subplot log10 plot
1 parent 0d6e2a2 commit 006bbee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoarray/plot/wrap/two_d/delaunay_drawer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,16 @@ def draw_delaunay_pixels(
6767
"pixel_values input to DelaunayPlotter are None and thus cannot be plotted."
6868
)
6969

70+
if pixel_values is not None:
71+
pixel_values = np.asarray(pixel_values)
72+
7073
if ax is None:
7174
ax = plt.gca()
7275

7376
source_pixelization_grid = mapper.mapper_grids.source_plane_mesh_grid
7477

7578
simplices = mapper.delaunay.simplices
76-
79+
7780
# Remove padded -1 values required for JAX
7881
simplices = np.asarray(simplices)
7982
valid_mask = np.all(simplices >= 0, axis=1)

0 commit comments

Comments
 (0)