|
4 | 4 | from pathlib import Path |
5 | 5 | from typing import Optional, Union |
6 | 6 |
|
7 | | -import matplotlib.pyplot as plt |
8 | 7 | from autoconf import conf |
9 | 8 |
|
10 | 9 | from autoarray.inversion.mappers.abstract import Mapper |
11 | 10 | from autoarray.plot.array import plot_array |
12 | | -from autoarray.plot.utils import numpy_grid, numpy_lines, numpy_positions, subplot_save, hide_unused_axes, conf_subplot_figsize, tight_layout |
| 11 | +from autoarray.plot.utils import subplots, numpy_grid, numpy_lines, numpy_positions, subplot_save, hide_unused_axes, conf_subplot_figsize, tight_layout |
13 | 12 | from autoarray.inversion.plot.mapper_plots import plot_mapper |
14 | 13 | from autoarray.structures.arrays.uniform_2d import Array2D |
15 | 14 |
|
@@ -53,7 +52,7 @@ def subplot_of_mapper( |
53 | 52 | """ |
54 | 53 | mapper = inversion.cls_list_from(cls=Mapper)[mapper_index] |
55 | 54 |
|
56 | | - fig, axes = plt.subplots(3, 4, figsize=conf_subplot_figsize(3, 4)) |
| 55 | + fig, axes = subplots(3, 4, figsize=conf_subplot_figsize(3, 4)) |
57 | 56 | axes = axes.flatten() |
58 | 57 |
|
59 | 58 | # panel 0: data subtracted |
@@ -279,7 +278,7 @@ def subplot_mappings( |
279 | 278 | ) |
280 | 279 | mapper.slim_indexes_for_pix_indexes(pix_indexes=pix_indexes) |
281 | 280 |
|
282 | | - fig, axes = plt.subplots(2, 2, figsize=conf_subplot_figsize(2, 2)) |
| 281 | + fig, axes = subplots(2, 2, figsize=conf_subplot_figsize(2, 2)) |
283 | 282 | axes = axes.flatten() |
284 | 283 |
|
285 | 284 | # panel 0: data subtracted |
|
0 commit comments