plotly / plotly/plotly.py

add button for switching between two figures

Open
#3,994 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Hi

In many situations researchers need to switch from a figure with various traces and even maybe various layout to another figure. It should be really helpful if we could assign fig object to the buttons instead of modifying data using args.

I mean that imagine I have fig1 and fig2. So, by clicking on a button the I could witch from fig1 to fig2 on same plot window but displayed alternatively. That would be great if instead of entering or modifying traces and arguments in args we could only assign fig1 or fig2.

With all the best,
Bijan

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the figure and button APIs involved in the request, especially how fig1, fig2, traces, and args are currently represented. Determine where switching between complete figures in the same plot window would belong. Done means a button can alternate between fig1 and fig2 without manually modifying traces or args.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.