File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from qtpy import QtCore as QC
1212
1313from plotpy import io
14+ from plotpy ._scaler import INTERP_AA
1415from plotpy .config import _
1516from plotpy .constants import LUTAlpha
1617from plotpy .coords import canvas_to_axes , pixelround
@@ -241,9 +242,13 @@ def set_zaxis_log_state(self, state):
241242 if self ._log_data is None :
242243 self ._log_data = np .array (np .log10 (self .data .clip (1 )), dtype = np .float64 )
243244 self .set_lut_range (get_nan_range (self ._log_data ))
245+ dtype = self ._log_data .dtype
244246 else :
245247 self ._log_data = None
246248 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 ))
247252 plot .update_colormap_axis (self )
248253
249254 # ---- BaseImageItem API ---------------------------------------------------
You can’t perform that action at this time.
0 commit comments