Skip to content

Commit a6db253

Browse files
authored
Merge pull request #1766 from plotly/gl2d-better-ticks
gl2d better ticks
2 parents 51a479b + f3478b7 commit a6db253

23 files changed

+8
-15
lines changed

src/plots/gl2d/scene2d.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,6 @@ proto.computeTickMarks = function() {
259259
this.xaxis.setScale();
260260
this.yaxis.setScale();
261261

262-
// override _length from backward compatibility
263-
// even though setScale 'should' give the correct result
264-
this.xaxis._length =
265-
this.glplot.viewBox[2] - this.glplot.viewBox[0];
266-
this.yaxis._length =
267-
this.glplot.viewBox[3] - this.glplot.viewBox[1];
268-
269262
var nextTicks = [
270263
Axes.calcTicks(this.xaxis),
271264
Axes.calcTicks(this.yaxis)

test/image/baselines/gl2d_10.png

-71 Bytes
Loading

test/image/baselines/gl2d_12.png

-2.13 KB
Loading

test/image/baselines/gl2d_14.png

-5.57 KB
Loading

test/image/baselines/gl2d_17.png

-913 Bytes
Loading
-228 Bytes
Loading
-1.24 KB
Loading
-902 Bytes
Loading
-2.18 KB
Loading
-5.9 KB
Loading

0 commit comments

Comments
 (0)