chemiscope icon indicating copy to clipboard operation
chemiscope copied to clipboard

Order of modeBarButtons in Plotly in 2D and 3D

Open jakublala opened this issue 4 years ago • 0 comments
trafficstars

Comes from #139. Adding custom download buttons means that the order has changed and cannot be easily adjusted when one also considers switching from 2D to 3D and vice versa. As there is no Plotly function that updates the plot using a new config (apart from Plotly.newPlot()), to change the button order (and also change the exact buttons used for 2D and 3D separately), one needs to call the Plotly.newPlot() function with the new config. This, however, breaks more things than it fixes and so some of the surrounding code in map.ts has to be re-written.

jakublala avatar Jun 14 '21 16:06 jakublala