question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add modebar buttons control into layout

See original GitHub issue

Let’s add a layout.modebar.buttons = {add: [...], remove: [...] } attribute to make it easier for folks to force certain buttons (like the to-be-removed hovermode buttons per #5642 or the drawing controls)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolaskruchtencommented, May 10, 2021

No, config should still win IMO

0reactions
nicolaskruchtencommented, May 10, 2021

OK for layout.modebar.(add|remove). I don’t want to go down the road of .buttons=[...] right now because I that’s a very static view of things: you have to know all the current defaults to recreate “defaults+add-remove”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

26 Control the modebar
26 Control the modebar. By default, the modebar appears in the top right-hand side of a plotly graph on mouse hover, ... 26.4...
Read more >
Configuration in Python - Plotly
Some modebar buttons of Cartesian plots are optional and have to be added explicitly, using the modeBarButtonsToAdd config attribute. These buttons are used ......
Read more >
How To Customize Plotly's Modebar - Random Problems
In this guide, I will show how to: control which plotly buttons are in the modebar; change the behavior of a plotly button;...
Read more >
Adding Plotly Modebar button which allows switching hover ...
You can use layout.modebar.add = 'v1hovermode' to add the hover mode buttons ... here under 'Add optional shape-drawing buttons to modebar' ...
Read more >
Modebar aesthetic configurability #3063 - plotly/plotly.js - GitHub
My rationale is that users will often want to control these settings alongside other layout options like the plot background colour and will ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found