diff --git a/src/plots/polar/polar.js b/src/plots/polar/polar.js index d6b3ea3b8c0..ebb32681efd 100644 --- a/src/plots/polar/polar.js +++ b/src/plots/polar/polar.js @@ -280,7 +280,7 @@ proto.updateLayout = function(fullLayout, polarLayout) { yaxis.isPtWithinRange = function() { return true; }; _this.clipPaths.forTraces.select('path') - .attr('d', pathSectorClosed(radius, sector)) + .attr('d', pathSectorClosed(radius, sector, _this.vangles)) .attr('transform', strTranslate(cxx, cyy)); layers.frontplot @@ -288,7 +288,7 @@ proto.updateLayout = function(fullLayout, polarLayout) { .call(Drawing.setClipUrl, _this._hasClipOnAxisFalse ? null : _this.clipIds.forTraces); layers.bg - .attr('d', pathSectorClosed(radius, sector)) + .attr('d', pathSectorClosed(radius, sector, _this.vangles)) .attr('transform', strTranslate(cx, cy)) .call(Color.fill, polarLayout.bgcolor); diff --git a/test/image/baselines/polar_polygon-grids.png b/test/image/baselines/polar_polygon-grids.png index 4c06a410fcc..5085bea992e 100644 Binary files a/test/image/baselines/polar_polygon-grids.png and b/test/image/baselines/polar_polygon-grids.png differ diff --git a/test/image/mocks/polar_polygon-grids.json b/test/image/mocks/polar_polygon-grids.json index 02e9243b5c7..e260257176a 100644 --- a/test/image/mocks/polar_polygon-grids.json +++ b/test/image/mocks/polar_polygon-grids.json @@ -84,6 +84,7 @@ }, "polar4": { "usepolygons": true, + "bgcolor": "#d3d3d3", "domain": { "x": [0.54, 1], "y": [0, 0.44]