Flatten figures of subplot for easy plotting
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 18.8k
- Forks
- 2.8k
- Avg merge
- 16h 26m
- Merged PRs (30d)
- 21
Description
I just dabbled into plotly for some project and i noticed via the documentation and stackoverflow that plotly does not have an easy way to flatten figures for easy subplotting. You literally have to explicitly define which rows and column you want your trace to be. It would be great if plotly could have a similar feature to matplotlib where you could flatten a series of axes subplots into a list and just for loop through it. Example below for clarity:
fig, axs = plt.subplots(nrows=4,ncols=4)
axs = axs.flatten()
for ax in axs:
ax.plot() # plot on each subplot from left to right for each row
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.
Research direction
Start by reviewing the subplot documentation and the existing figure and subplot APIs in plotly.py; the issue does not name specific files or tests. Determine how a flattening interface would map subplot positions for iteration, and consider the work complete when users can iterate through subplots in row-major order without explicitly selecting each row and column.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- plotly, python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100