# Heatmap "streching" of data points

**URL:** <https://community.plotly.com/t/heatmap-streching-of-data-points/5571>\
**Category:** plotly.js\
**Created:** [August 29, 2017, 1:35am UTC](https://community.plotly.com/t/heatmap-streching-of-data-points/5571 "2017-08-29T01:35:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonasber](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jonasber](https://community.plotly.com/u/jonasber)\
**Post date:** [August 29, 2017, 1:35am UTC](https://community.plotly.com/t/heatmap-streching-of-data-points/5571/1 "2017-08-29T01:35:01Z")

</div>

I have a question about Heatmaps in Plotly: Why are some fields in heatmaps larger than others? For example here: [https://plot.ly/~jonasber/1/](https://plot.ly/~jonasber/1/) , all squares have different dimensions. What do I have to change in the settings so that each datapoint gets an equally sized square on the heatmap?

Also, in the example the last data point (2, 10, 3) gets displayed as (3.75, 10, 3) when you hover over the square. I experience the same in plotly.js but is there a way to display the real data on hover?

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [August 29, 2017, 1:49pm UTC](https://community.plotly.com/t/heatmap-streching-of-data-points/5571/2 "2017-08-29T13:49:35Z")

</div>

> [@jonasber](#):
>
> Why are some fields in heatmaps larger than others?

Hmm. That might be a bug.

In the meantime, I’d recommend setting your heatmap trace using a 2d `z` array. In the case, the `x` and `y` data array correspond to the bricks’ bounds: [https://codepen.io/etpinard/pen/GvYYgR](https://codepen.io/etpinard/pen/GvYYgR)

---

<div class="post-metadata">

**Author:** ![jonasber](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jonasber](https://community.plotly.com/u/jonasber)\
**Post date:** [September 8, 2017, 8:07am UTC](https://community.plotly.com/t/heatmap-streching-of-data-points/5571/3 "2017-09-08T08:07:36Z")

</div>

Thank you very much, this helped me!
