Skip to content

Commit 9e4131b

Browse files
committed
Allow more ticks on axis (reduce factors)
1 parent 04bf4bb commit 9e4131b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/JSRootPainter.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,8 +2290,6 @@
22902290
// simple way to access painter via frame container
22912291
this.draw_g.property('frame_painter', this);
22922292

2293-
console.log('frame ' + lm + "," + tm + " " + w + "," + h);
2294-
22952293
this.draw_g.attr("x", lm)
22962294
.attr("y", tm)
22972295
.attr("width", w)
@@ -3446,12 +3444,12 @@
34463444
var gr_range = Math.abs(this.func.range()[1] - this.func.range()[0]);
34473445

34483446
// avoid black filling by middle-size
3449-
if ((handle.middle.length <= handle.major.length) || (handle.middle.length > gr_range / 4)) {
3447+
if ((handle.middle.length <= handle.major.length) || (handle.middle.length > gr_range/3.5)) {
34503448
handle.minor = handle.middle = handle.major;
34513449
} else
34523450
if ((this.nticks3 > 1) && (this.kind !== 'log')) {
34533451
handle.minor = this.func.ticks(handle.middle.length * this.nticks3);
3454-
if ((handle.minor.length <= handle.middle.length) || (handle.minor.length > gr_range/2)) handle.minor = handle.middle;
3452+
if ((handle.minor.length <= handle.middle.length) || (handle.minor.length > gr_range/1.7)) handle.minor = handle.middle;
34553453
}
34563454
}
34573455

0 commit comments

Comments
 (0)