cmap and interpolation kwargs for EELSSpectrum and Signal1D doesn't work. #149
-
Describe the functionality you would like to see.EELSSpectrum.plot(cmap="magma",interpolation="gaussian") should apply them to the navigator. Minimal test case:rand2D=hs.signals.Signal2D(np.random.random((10, 10))) rand1D=hs.signals.Signal1D(np.random.random((10,10, 10))) Any recommendation on how we can implement this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
All arguments for the navigator needs to be passed as a dictionary to the import hyperspy.api as hs
import numpy as np
rand1D = hs.signals.Signal1D(np.random.random((10,10, 10)))
rand1D.plot(navigator_kwds=dict(cmap='magma', interpolation='gaussian')) |
Beta Was this translation helpful? Give feedback.
All arguments for the navigator needs to be passed as a dictionary to the
navigator_kwdsargument - see https://hyperspy.org/hyperspy-doc/current/user_guide/visualisation.html#customizing-the-navigator.