scattergl fill - autorange and restyle
See original GitHub issuescattergl
doesn’t match the scatter
svg autorange behavior with fill: for example, fill: 'tozeroy'
like in the gl2d_axes_labels2
mock should trigger the y axis to autorange to zero, and the x axis to autorange tightly rather than padded, despite the markers.
Also: open the same mock and Plotly.restyle(gd, {fill: 'none'})
- the fill will not disappear, though if you add a fill to a plot that doesn’t have one, it will appear.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python Figure Reference: scattergl Traces - Plotly
Scattergl trace is a graph object in the figure's data list with any of the named arguments or attributes listed below. The data...
Read more >Visualization with Plotly.Express: Comprehensive guide
A detailed guide on how to create many visualizations with Plotly Express with layout styling, interactivity, animations, and many chart ...
Read more >plotly.js-gl2d-dist-min | Yarn - Package Manager
Ready-to-use minified plotly.js gl2d distributed bundle. Contains trace modules heatmapgl , parcoords , pointcloud , scatter , scattergl and splom .
Read more >Plotly - Quick Guide - Tutorialspoint
If set to markers, only the data points represented by small filled circles ... Plotly you can implement WebGL with Scattergl() in place...
Read more >17 Server-side linking with shiny
The plotly.js function Plotly.restyle() is for modifying any existing traces. ... FIGURE 17.20: Using Plotly.relayout() to 'auto-range' the y-axis in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dfcreative I found a pretty bad typo in the scattergl calc step where the marker options container is refered to
options.markers
here, here, here and here instead ofoptions.markers
as set here.This means that
Axis.expand
never got the correct size values here and the autorange computation for scattergl were plain wrong. See image diffs in commit https://github.com/plotly/plotly.js/commit/58c29724b7daa7211830245af2645f256401310a .In short, I’ll spend some time during to clean up the scattergl calc, by hopefully reusing as much of
Scatter.calc
as possible.Related: https://github.com/plotly/plotly.js/issues/2417