diff --git a/src/scgenerator/physics/units.py b/src/scgenerator/physics/units.py index ffe37c0..19ddb61 100644 --- a/src/scgenerator/physics/units.py +++ b/src/scgenerator/physics/units.py @@ -386,6 +386,9 @@ class PlotRange(tuple): def sort_axis(self, axis: np.ndarray) -> tuple[np.ndarray, np.ndarray, tuple[float, float]]: return sort_axis(axis, self) + def __reduce__(self): + return (PlotRange, (self.left, self.right, self.unit)) + def sort_axis( axis: np.ndarray, plt_range: PlotRange