else:
intensity_scale = "log" if power_spectrum else "linear"
if shifted is None:
if "shifted" in self._plot_kwargs.keys():
shifted = self._plot_kwargs["shifted"]
else:
shifted = True if power_spectrum else False
After Change
intensity_scale = self._plot_kwargs["intensity_scale"]
else:
intensity_scale = "log" if power_spectrum else "linear"
metadata_shifted = self.metadata.get_item("Signal.FFT.shifted", False)
// Determine if we need to shift the data when plotting:
if shifted is metadata_shifted:
shift = False
else: