Skip to content
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

Logarithmic axes scaling fix #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Logarithmic axes scaling fix #163

wants to merge 2 commits into from

Conversation

nkaraman
Copy link

@nkaraman nkaraman commented Oct 9, 2017

Issue:
In some cases scaling with logarithmic axes behaved strange. When you move in chart or scale it fixes the axes in scale of 0 to 1.
There is no way to get out of that state (only restart an app)
originalchart
chartafterscaling

Reason:
In LogarithmicRenderer2D.java:worldToView operation Math.log10(val) with val=0 gives you Infinite.
This mess up computations.

Proposed solution:
Limit computation results to 0 if result is infinite.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.802% when pulling cfaa2dd on nkaraman:master into a5f115c on eseifert:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.802% when pulling cfaa2dd on nkaraman:master into a5f115c on eseifert:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants