Fix unwanted matplotlib import in projection.py
Release / build-ubuntu-latest (push) Failing after 2s
Release / build-windows (push) Has been cancelled
Release / release (push) Has been cancelled

This commit is contained in:
2025-10-10 09:26:40 +02:00
parent aa5b540aed
commit ac9babb9ad
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -10,8 +10,6 @@ from typing import List, Tuple, Union
import numpy as np
from dataclasses import dataclass
from matplotlib.colors import LogNorm
from .event_data_types import EventDatasetProtocol
from .instrument import Detector, LZGrid
from .normalization import LZNormalisation
@@ -312,6 +310,7 @@ class LZProjection(ProjectionInterface):
"""
Inline update of previous plot by just updating the data.
"""
from matplotlib.colors import LogNorm
if self.is_normalized:
I = self.data.ref
else:
@@ -458,6 +457,7 @@ class YZProjection(ProjectionInterface):
"""
Inline update of previous plot by just updating the data.
"""
from matplotlib.colors import LogNorm
if isinstance(self._graph.norm, LogNorm):
vmin = self.data.I[(self.data.I>0)].min()*0.5
else:
@@ -597,6 +597,7 @@ class TofZProjection(ProjectionInterface):
"""
Inline update of previous plot by just updating the data.
"""
from matplotlib.colors import LogNorm
if isinstance(self._graph.norm, LogNorm):
vmin = self.data.I[(self.data.I>0)].min()*0.5
else:
+1
View File
@@ -2,5 +2,6 @@ numpy
h5py
orsopy
numba
matplotlib
backports.strenum; python_version<"3.11"
backports.zoneinfo; python_version<"3.9"