File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11
11
from qtpy import QtCore as QC
12
12
13
13
from plotpy import io
14
+ from plotpy ._scaler import INTERP_AA
14
15
from plotpy .config import _
15
16
from plotpy .constants import LUTAlpha
16
17
from plotpy .coords import canvas_to_axes , pixelround
@@ -241,9 +242,13 @@ def set_zaxis_log_state(self, state):
241
242
if self ._log_data is None :
242
243
self ._log_data = np .array (np .log10 (self .data .clip (1 )), dtype = np .float64 )
243
244
self .set_lut_range (get_nan_range (self ._log_data ))
245
+ dtype = self ._log_data .dtype
244
246
else :
245
247
self ._log_data = None
246
248
self .set_lut_range (self ._lin_lut_range )
249
+ dtype = self .data .dtype
250
+ if self .interpolate [0 ] == INTERP_AA :
251
+ self .interpolate = (INTERP_AA , self .interpolate [1 ].astype (dtype ))
247
252
plot .update_colormap_axis (self )
248
253
249
254
# ---- BaseImageItem API ---------------------------------------------------
You can’t perform that action at this time.
0 commit comments