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

Log scale breaks with small fractions. #37

Open
GregorySchwartz opened this issue Aug 2, 2017 · 1 comment
Open

Log scale breaks with small fractions. #37

GregorySchwartz opened this issue Aug 2, 2017 · 1 comment

Comments

@GregorySchwartz
Copy link

The scale seems to completely break the diagram with some fractions. Especially when trying to make a volcano plot, for instance, which has all values on the y-axis between 0 and 1 (p-values).

import Plots
import Diagrams.Prelude

import Data.Typeable

mydata1 = [(0.1,0.3), (0.6,0.5)]

myaxis :: Axis B V2 Double
myaxis = r2Axis &~ do
  scatterPlot' mydata1

  yAxis . logScale .= LogAxis

dia = renderAxis myaxis
@cchalmers
Copy link
Owner

Thanks for the report.

Yeah, sorry about this. The log axis should be considered an alpha feature. I only really wrote what I have to convince myself I could get it to work with the current framework.

I've had a look and it's not obvious to me to how to fix this. I seem to think something funny was going on with the scaling since log values < 1 are negative. I'll try to have another look at this over the weekend but no promises this will get fixed any time soon.

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

No branches or pull requests

2 participants