-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Scalar plots should have true log scaling option #938
Comments
Yes, the "log" scale is actually a "ModifiedLog" scale: "A ModifiedLog Scale acts as a regular log scale for large numbers. As it approaches 0, it gradually becomes linear. Consequently, a ModifiedLog Scale can process 0 and negative numbers." I agree that at a minimum there should be some ability to control the point at which the linearization begins, and probably it would be best to have a true log scale option (though this is a little more work to implement). Here's a few questions that could help guide what this looks like:
|
Simply not showing them would be a reasonable option -- better than what we currently have. It's always easy to switch back to linear scaling if necessary. I think my favorite option would be ignoring them in setting axis-boundaries and then showing vertical lines diverging off the screen, like matplotlib:
One thing that would be best to avoid is simply dropping invalid plots and showing straight lines between the remaining valid values. This could led to the misleading impression that there are no negative values.
I have been doing scientific visualization for over a decade now. I've used a log scale many times, but I can only think of one case where I've seen a variation on a modified log-scale used (and it wasn't in machine learning). It's just not a standard visualization technique. So my preference would be to for dropping it entirely, though I would not be strongly opposed to keeping it as an option. |
I'm also for the vertical lines, as suggested by @shoyer, ideally making them dotted 😃
Good question. I for one will definitely not miss the modified logging if it goes away, but I am only I. One option might be to make the modified log scaling opt-in and to see if anybody notices/complains. Any decision in favour of one or the other could be based on usage statistics. |
Would it be hard to make the button with tri-state (linear/log/modified log) instead of toggling between the two? The Icon would need to be carefully designed though. |
@yk5 do you have use cases for modified log scaling? |
No, I don't prefer modified log scaling.
I anticipate true log-scaling, but my point was: if the decision is not
made because of some benefits of modified log scale, I wish to have true
log scaling earlier as a third option instead of later replacing modified
log scaling with it.
…On Thu, Apr 19, 2018 at 12:38 PM Stephan Hoyer ***@***.***> wrote:
@yk5 <https://github.com/yk5> do you have use cases for modified log
scaling?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#938 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXihKs-DnKbk4dMQlJDmcrNDWhGpz4jFks5tqOelgaJpZM4R30Gg>
.
|
This issue is a duplicate of #57 |
Logarithmic scaling for scalar summaries is broken in several ways:
I'm guessing this was done to make accidental plotting of not strictly positive values less painful for the inexperienced user, but it makes the whole thing kind of useless for the rest of us. E.g. if I have some loss that converges gently towards zero, I'm actually quite interested in seeing how it behaves below 0.1. Plotting values linearly below that range makes them mostly indistinguishable.
Are there any plans to fix this, or can we add a setting to enable genuine logarithmic scaling for non-novice users?
The text was updated successfully, but these errors were encountered: