Skip to content

cmap and interpolation kwargs for EELSSpectrum and Signal1D doesn't work. #148

@HanHsuanWu

Description

@HanHsuanWu

Describe the functionality you would like to see.

EELSSpectrum.plot(cmap="magma",interpolation="gaussian") should apply them to the navigator.
Currently this only work with Signal2D.plot(cmap="magma",interpolation="gaussian")

Minimal test case:

rand2D=hs.signals.Signal2D(np.random.random((10, 10)))
rand2D.plot(cmap='magma',interpolation='gaussian')

rand1D=hs.signals.Signal1D(np.random.random((10,10, 10)))
rand1D.plot(cmap='magma',interpolation='gaussian')

Any recommendation on how we can implement this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions