Skip to content

Commit 40a0829

Browse files
committed
clear old axis titles on cartesian clean
1 parent a8a2752 commit 40a0829

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plots/cartesian/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,14 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
166166

167167
if(hadCartesian && !hasCartesian) {
168168
var subplotLayers = oldFullLayout._cartesianlayer.selectAll('.subplot');
169+
var axIds = Axes.listIds({ _fullLayout: oldFullLayout });
169170

170171
subplotLayers.call(purgeSubplotLayers, oldFullLayout);
171172
oldFullLayout._defs.selectAll('.axesclip').remove();
173+
174+
for(i = 0; i < axIds.length; i++) {
175+
oldFullLayout._infolayer.select('.' + axIds[i] + 'title').remove();
176+
}
172177
}
173178
};
174179

0 commit comments

Comments
 (0)