Skip to content

Commit 6bb979a

Browse files
committed
use main plotinfo
1 parent 6e20634 commit 6bb979a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plots/cartesian/axes.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,10 +3158,12 @@ axes.drawLabels = function(gd, ax, opts) {
31583158
e.L === 'text' &&
31593159
ax.ticklabelmode === 'period';
31603160

3161+
var mainPlotinfo = fullLayout._plots[ax._mainSubplot];
3162+
31613163
var sel;
3162-
if(e.K === ZERO_PATH.K) sel = opts.plotinfo.zerolinelayer.selectAll('.' + ax._id + 'zl');
3163-
else if(e.K === GRID_PATH.K) sel = opts.plotinfo.gridlayer.selectAll('.' + ax._id);
3164-
else sel = opts.plotinfo[ax._id.charAt(0) + 'axislayer'];
3164+
if(e.K === ZERO_PATH.K) sel = mainPlotinfo.zerolinelayer.selectAll('.' + ax._id + 'zl');
3165+
else if(e.K === GRID_PATH.K) sel = mainPlotinfo.gridlayer.selectAll('.' + ax._id);
3166+
else sel = mainPlotinfo[ax._id.charAt(0) + 'axislayer'];
31653167

31663168
sel.each(function() {
31673169
var w = d3.select(this);

0 commit comments

Comments
 (0)