new PlotHeatmap( Plotly, divId [, plotType [, plotLayout ] ] )

Description

Creates an instance of PlotHeatmap

Parameters
Name Type Attributes Default Description
Plotly *

plotly.js global object import (see https://plotly.com/javascript/)

divId string

HTML div container id

plotType string <optional>
'chroma'

type of plot to configure the y-axis

plotLayout * <optional>
LayoutSpectrogramPlot
Details

Methods


makeLinearSpace( start, stop, num ) → {Array}

Description

Returns evenly spaced samples, calculated over the interval [start, stop].

Parameters
Name Type Description
start *

The starting value of the sequence.

stop *

The end value of the sequence

num *

Number of samples to generate. Must be non-negative.

Returns
Details

create( featureArray, plotTitle, audioFrameSize, audioSampleRate [, hopSize [, colorscale ] ] )

Description

Create Plotly.js heatmap plot with given input array and type

Parameters
Name Type Attributes Default Description
featureArray Array

2D feature array where 'x' axis denotes temporal evolution of features

plotTitle string

title of the plot

audioFrameSize *

length of input audio data in samples

audioSampleRate *

sample rate of input audio

hopSize * <optional>
0

hopSize used for the feture extraction if applies.

colorscale string <optional>
'Jet'
Details

destroy()

Description

Destroy the existing Plotly plot traces

Details