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.

scattergl fill - autorange and restyle

See original GitHub issue

scattergl 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
etpinardcommented, Feb 22, 2018

@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 of options.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.

0reactions
etpinardcommented, Feb 28, 2018
Read more comments on GitHub >

github_iconTop 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 >

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