1

I'm testing plotly.js 2D Histogram contour to show the pressures of a foot, but it changes a lot the shape and it doesn't look like a foot pressure.

There is the Codepen to test it, as you can see these are 2 foot, one of them with a lot of missing data, but anyway I attach a picture from the Heat map to show you how I would like to show it, but with contours. On the Heat map the foot are inverted.

enter image description here

https://codepen.io/sebastcd/pen/OJEvpjW?editors=0010

These are the actual settings:

var trace2 = {
  x: x,
  y: y,
  name: 'density',
  ncontours: 20,
  colorscale: 'Hot',
  reversescale: true,
  showscale: false,
  type: 'histogram2dcontour',
  histfunc: 'sum',
  z: weights
};

Any ideas to don't change that much the shape and follow the "dots"?

Thanks

Sebas Bejenaru
  • 129
  • 1
  • 1
  • 10
  • I took a quick look at you data on the codepen. I think your fundamental problem is that a density plot is inappropriate here. Starting from your data, a heatmap would produce the result you are hoping for. – SmokeyShakers Nov 23 '22 at 18:16
  • Hi @SmokeyShakers actually I'm using simpleheat to generate the heatmap and it works fine, but I would like to have the contour of it, that's why I'm trying to do that with 2D historgram contour. Maybe that's the wrong way to get that? – Sebas Bejenaru Nov 24 '22 at 07:52

0 Answers0