empty splom in case of two dimensions
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- numpy, pandas, python
- Domain
- data-visualization
Research direction
Start with the go.Splom reproduction in the issue, especially the two dimensions, hidden diagonal, and lower-half-only settings. Run the script with fig.show() or fig.write_html() and trace the generated figure behavior. Done means the two-dimensional lower-half-only splom renders its single scatter plot instead of an empty figure.
Written by the indexing model from the issue text.
Description
Creating a splom with two dimensions, no diagonal and only the upper or lower half results in an empty figure.
Code that reproduces the issue:
import numpy as np
import pandas as pd
import plotly.graph_objects as go
data = pd.DataFrame({"col1": np.random.rand(10), "col2": np.random.rand(10)})
fig = go.Figure(
go.Splom(
dimensions=[{"label": label, "values": data[label]} for label in data.columns],
diagonal={"visible": False},
showupperhalf=False,
showlowerhalf=True,
),
)
fig.write_html("test.html") # or fig.show()
# Gives me an empty plot. Setting `diagonal` or `showupperhalf` to `True` does give a plot
Expected result
A single scatter plot.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 13h 41m
- Merged PRs (30d)
- 21
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.py
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug P1
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
feature P3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in plotly/plotly.py
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·