Skip to content

Commit dc94e50

Browse files
committed
pr OK
1 parent bc3358f commit dc94e50

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/lib/sort_traces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function transpose(matrix) {
111111

112112
var newMatrix = [];
113113

114-
// prevent inplace change
114+
// prevent inplace change and mantain the main diagonal
115115
for(var rw = 0; rw < squaredMatrix.length; rw++) {
116116
newMatrix.push(squaredMatrix[rw].slice());
117117
}

src/plots/cartesian/axes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,9 +2577,9 @@ axes.drawOne = function(gd, ax, opts) {
25772577

25782578
if(ax.automargin || hasRangeSlider) {
25792579
if(ax.type === 'multicategory') {
2580-
llbbox = getLabelLevelBbox('tick' + String(ax.levelNr - 1));
2581-
// hardcoded tick name, breakes only with plotly.py
2580+
// hardcoded tick name, breakes only with plotly.py. Not sure if this is the right selection
25822581
// llbbox = getLabelLevelBbox('tick2');
2582+
llbbox = getLabelLevelBbox('tick' + String(ax.levelNr - 1));
25832583
} else {
25842584
llbbox = getLabelLevelBbox();
25852585
if(axLetter === 'x' && s === 'b') {
@@ -3784,7 +3784,6 @@ function drawDividers(gd, ax, opts) {
37843784
var cls = ax._id + 'divider';
37853785
var vals = opts.vals;
37863786

3787-
37883787
var dividers = opts.layer.selectAll('path.' + cls)
37893788
.data(vals, tickDataFn);
37903789

0 commit comments

Comments
 (0)