Skip to content

histogram2dcontour with heatmap coloring loses color on responsive resize #3894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonmmease opened this issue May 23, 2019 · 1 comment
Closed

Comments

@jonmmease
Copy link
Contributor

Originally reported in plotly/plotly.py#1573

When a histogram2dcontour trace with contour.coloring: 'heatmap' is displayed with a config of responsive: true, it loses its coloring on resize.

CodePen: https://codepen.io/jonmmease/pen/KLQWOO?editors=1010

var x = [0, 1, 1];
var y = [0, 1, 1];

var data = [
  {
    x: x,
    y: y,
    type: 'histogram2dcontour',
    contours: {coloring: 'heatmap'}
  }
];
Plotly.newPlot('graph', data, {}, {responsive:true}); 

histogram2dcontour_coloring

@etpinard
Copy link
Contributor

Fixed in master https://codepen.io/etpinard/pen/RmQMrz?editors=1010

Duplicate of #3858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants