I use Sploms in my streamlit application. The splom can have 2 or more dimensions.
I don’t want to see the diagonal and only one half, so I use:
fig = go.Figure(
go.Splom(
dimensions=[
{"label": label, "values": data[label]} for label in labels
],
diagonal={"visible": True},
showupperhalf=True,
showlowerhalf=False,
showlegend=False,
),
)
This works fine for cases with more than 2 dimensions, however, when I use exactly two dimensions I get an empty plot… Setting both showupperhalf and showlowerhalf to True, or setting diagonal to visible does generate a plot as expected (but not the one that I want).
I know I can use a simple go.Scatter for the two dimensional case, however, in streamlit switching from one plot type to another slows things down tremendously.