Skip to content

Commit

Permalink
fixup bgcolor for polar polygons grids
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Jun 15, 2018
1 parent 24276b3 commit a0a62af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plots/polar/polar.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ 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
.attr('transform', strTranslate(xOffset2, yOffset2))
.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);

Expand Down
Binary file modified test/image/baselines/polar_polygon-grids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions test/image/mocks/polar_polygon-grids.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
},
"polar4": {
"usepolygons": true,
"bgcolor": "#d3d3d3",
"domain": {
"x": [0.54, 1],
"y": [0, 0.44]
Expand Down

0 comments on commit a0a62af

Please sign in to comment.