Mobby
May 12, 2023, 8:02am
1
Hi,
I have this heatmap and it behaves odd.
Right now it doesn´t show any significant values but as soon as I zoom into the “empty” area this is the display:
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
Hi @Mobby ,
could yo provide dataframe sample ?
it will really help me trying to solve your code. Thanks
empet
May 14, 2023, 8:21am
3
@Mobby The yaxis_type=‘log’, works very well:
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',
)
Previously I said it isn’t implemented, but it is!!!
1 Like
Mobby
May 15, 2023, 5:41am
4
How can I add the data? it seems that neither *.csv; *.zip or *.txt are allowed
Mobby
May 15, 2023, 5:42am
5
thanks, I already tried that. It seem not to help in this case…
Mobby
May 16, 2023, 7:06am
6
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!