# Incomplete visualization heatmap

**URL:** <https://community.plotly.com/t/incomplete-visualization-heatmap/75203>\
**Category:** 📊 Plotly Python\
**Created:** [May 12, 2023, 8:02am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203 "2023-05-12T08:02:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mobby](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mobby](https://community.plotly.com/u/Mobby)\
**Post date:** [May 12, 2023, 8:02am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/1 "2023-05-12T08:02:36Z")

</div>

Hi,  
I have this heatmap and it behaves odd.

 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/5/c/5cfe89607862914dc7b99ed0562b809196ceabd1.png)

Right now it doesn´t show any significant values but as soon as I zoom into the “empty” area this is the display:

 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/6/4/64d6a99dafde2d6baef4cbf84e1059c9a581af6d.png)

The code I use to display is:

fig = go.Figure(data = go.Heatmap(z = pr,  
#labels=dict(y=“bark”, x=“Time”, color=“Productivity”),  
y=freqs,  
x=time,  
colorbar = dict(title = ‘Hello World!’),  
colorscale = “Hot”,zsmooth = False  
), layout = go.Layout(title = ‘Hello World!’, xaxis\_title =‘x’, yaxis\_title = ‘y’))  
fig.update\_yaxes(type=“log”)  
fig.show()

switching to GL did worsen it.

I need to see all data to visually compare multiple heatmaps with another and I can´t do that as long as i cant trust the graphs I´m looking at.

Thanks,

Mobby

---

<div class="post-metadata">

**Author:** ![farispriadi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/farispriadi/32/26759_2.png) [@farispriadi](https://community.plotly.com/u/farispriadi)\
**Post date:** [May 13, 2023, 4:24am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/2 "2023-05-13T04:24:51Z")

</div>

Hi @Mobby ,

could yo provide dataframe sample ?  
it will really help me trying to solve your code. Thanks

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [May 14, 2023, 8:21am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/3 "2023-05-14T08:21:13Z")

</div>

@Mobby The yaxis\_type=‘log’, works very well:

```auto
a, b = 20, 25 
c, d = 200, 10000 
z= np.random.randint(20,30, (40, 25))
fig=go.Figure(go.Heatmap(x = np.linspace(a, b, 25),
y = np.linspace(c, d, 40), z=z, colorscale="matter"))
fig.update_layout(title_text="Heatmap with respect to linear xaxis,<br>and log₁₀ yaxis", 
                   title_x=0.5,
                   width=400, height=550, font_family="Balto",
                   yaxis_type='log',
                   )

```

 ![logy-heatmap](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/c/d/cd35ba5f6cac7c0a9870fb4f2c73b0845f7d77a6.png)

Previously I said it isn’t implemented, but it is!!! 🙂

---

<div class="post-metadata">

**Author:** ![Mobby](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mobby](https://community.plotly.com/u/Mobby)\
**Post date:** [May 15, 2023, 5:41am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/4 "2023-05-15T05:41:44Z")

</div>

How can I add the data? it seems that neither \*.csv; \*.zip or \*.txt are allowed

---

<div class="post-metadata">

**Author:** ![Mobby](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mobby](https://community.plotly.com/u/Mobby)\
**Post date:** [May 15, 2023, 5:42am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/5 "2023-05-15T05:42:39Z")

</div>

thanks, I already tried that. It seem not to help in this case…

---

<div class="post-metadata">

**Author:** ![Mobby](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Mobby](https://community.plotly.com/u/Mobby)\
**Post date:** [May 16, 2023, 7:06am UTC](https://community.plotly.com/t/incomplete-visualization-heatmap/75203/6 "2023-05-16T07:06:04Z")

</div>

I found one solution. When saving the graph as \*.html file after a restart of the server it visualizes the graph way better.  
None the less the visualization in the compiler strougles!
