# Training garbage error in heatmap with Nans

**URL:** <https://community.plotly.com/t/training-garbage-error-in-heatmap-with-nans/19265>\
**Category:** plotly.js\
**Created:** [February 8, 2019, 1:53pm UTC](https://community.plotly.com/t/training-garbage-error-in-heatmap-with-nans/19265 "2019-02-08T13:53:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Squerut](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Squerut](https://community.plotly.com/u/Squerut)\
**Post date:** [February 8, 2019, 1:53pm UTC](https://community.plotly.com/t/training-garbage-error-in-heatmap-with-nans/19265/1 "2019-02-08T13:53:38Z")

</div>

Hi,

we found an error plotting an heatmap chart. In particular we set the Z values to Nan matrix (2 x 2). We obtained the following error

> Error: attribute transform: Trailing garbage, “rotate(0,NaN,NaN)”.

In attachment a working example to reproduce the problem.

https://codepen.io/Squerut/embed/preview/XOZWqB?default-tabs=js%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=XOZWqB

As you can see in the example, the chart scale and labels are drawn in an unexpected way

Thanks!

---

<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:** [February 8, 2019, 4:49pm UTC](https://community.plotly.com/t/training-garbage-error-in-heatmap-with-nans/19265/2 "2019-02-08T16:49:08Z")

</div>

Thanks for the report!

You can track it here -\> [https://github.com/plotly/plotly.js/issues/3526](https://github.com/plotly/plotly.js/issues/3526)
