-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
even out tick distance in graph if value range is big #1093
Conversation
ticks.result() | ||
} | ||
|
||
def getLogMajorStepSize(min: Double, max: Double, n: Int): Int = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be private?
while (curr <= max) { | ||
//show tick for 0 but not 1(10^0) if lower boundary is 0, because they are too close in log scale | ||
val v = if (v1 == 0 && curr == 0) 0 else math.pow(10, curr) | ||
//val v = math.pow(10, curr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I think we can improve the binary mode as a later follow up.
@@ -47,7 +47,7 @@ sealed trait ValueAxis extends Element with FixedWidth { | |||
val numTicks = (y2 - y1) / minTickLabelHeight | |||
plotDef.tickLabelMode match { | |||
case TickLabelMode.BINARY => Ticks.binary(min, max, numTicks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1007