Skip to content

Commit

Permalink
Merge pull request #154 from jaidevd/jd-force-pwv-plotkind
Browse files Browse the repository at this point in the history
Only contour plots supported in PseudoWignerVille
  • Loading branch information
jaidevd authored Jul 26, 2017
2 parents 3caa139 + 1601f31 commit 143170d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tftb/processing/cohen.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ def run(self):
self.tfr = np.fft.fft(self.tfr, axis=0)
return np.real(self.tfr), self.ts, self.freqs

def plot(self, **kwargs):
if kwargs.get("kind", "") == "cmap":
import warnings
warnings.warn("cmap is not supported for PseudoWignerVille distributions.")
kwargs['kind'] = "contour"
super(PseudoWignerVilleDistribution, self).plot(**kwargs)


def smoothed_pseudo_wigner_ville(signal, timestamps=None, freq_bins=None,
twindow=None, fwindow=None):
Expand Down

0 comments on commit 143170d

Please sign in to comment.