errore(private var isPlaying:Boolean;),我想为我的project.help我更多的mp3文件。 这是我的代码开始的:
var bin = 10;
var rel_min = 100;
var rel_max = 250;
var colorscale = [];
var color = Plotly.d3.scale.linear()
.domain([0, 0.5, 1])
.range(["blue", "green", "red"]);
for (var i = 0; i < bin; i += 1) {
colorscale.push([i / bin, color(i / bin)]);
colorscale.push([(i + 1) / bin, color(i / bin)] );
}
Plotly.newPlot('myDiv', [{
z: heatmap,
zmin: rel_min,
zmax: rel_max,
type: 'heatmap',
colorscale: colorscale
}])