Using plolty version 5.11.0, and the below code:
import plotly.graph_objects as go
import numpy as np
labels = ["a", "a", "b", "b", "j", "a", "b"]
z = np.arange(len(labels)).reshape(1, len(labels))
fig = go.Figure()
fig.add_trace(go.Heatmap(
z=z,
x = labels,
text=z,
texttemplate="%{text}",
))
β¦produces a graph w/ only βaβ, βbβ, βjβ labels, removing the duplicate labels. It also shifts the values, such that βbβ is now associated w/ value β1β when it should be β2β. This happens w/o an error or warning about duplicates or mentioning that the data dimensions have been reduced.
Is there a way to allow non-unique labels in the x-axis?