Skip to content

Commit 3a6a4ef

Browse files
committed
Display real ticks at 0.2, 0.5, 1.0, 2.0, 5.0
1 parent db5c62a commit 3a6a4ef

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/plots/smith/smith.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -391,17 +391,7 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
391391

392392
// set special grid path function
393393
var gridPathFn = function(d) {
394-
// var sq = function (x) { return x * x; };
395-
// var gammaX = function(re) {
396-
// var denom = sq(re + 1.0);
397-
// var result = (sq(re) - 1.0) / denom;
398-
// return result;
399-
// }
400-
// var gamma_x = gammaX(d.x);
401-
402-
// console.log(d);
403-
404-
var value = 5 * d.x
394+
var value = d.x
405395

406396
var gridRadius = 0.5 * (_this.radius - ax.c2p(value));
407397
var gridCenter = gridRadius + ax.c2p(value);
@@ -451,7 +441,7 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
451441
ax.setScale();
452442

453443
var vals = Axes.calcTicks(ax);
454-
var valsClipped = Axes.clipEnds(ax, vals);
444+
// var valsClipped = Axes.clipEnds(ax, vals);
455445
var tickSign = Axes.getTickSigns(ax)[2];
456446

457447
Axes.drawTicks(gd, ax, {
@@ -463,7 +453,7 @@ proto.updateRadialAxis = function(fullLayout, polarLayout) {
463453
});
464454

465455
Axes.drawGrid(gd, ax, {
466-
vals: valsClipped,
456+
vals: [{x: 0.2 }, {x: 0.5 }, {x: 1.0 }, {x: 2.0 }, {x: 5.0 } ],
467457
layer: layers['radial-grid'],
468458
path: gridPathFn,
469459
transFn: Lib.noop,

0 commit comments

Comments
 (0)