Skip to content

Commit 6f83703

Browse files
Jammy2211Jammy2211
authored andcommitted
origin fixed
1 parent ecc2b34 commit 6f83703

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

autoarray/plot/visuals/two_d.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,15 @@ def plot_via_plotter(self, plotter, grid_indexes=None):
5252
plotter.mask_scatter.scatter_grid(grid=self.mask.derive_grid.edge.array)
5353

5454
if self.origin is not None:
55+
56+
origin = self.origin
57+
58+
if isinstance(origin, tuple):
59+
60+
origin = Grid2DIrregular(values=[origin])
61+
5562
plotter.origin_scatter.scatter_grid(
56-
grid=Grid2DIrregular(values=self.origin).array
63+
grid=Grid2DIrregular(values=origin).array
5764
)
5865

5966
if self.border is not None:

0 commit comments

Comments
 (0)