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

Axes with log scales #20

Closed
ndalchau opened this issue Aug 28, 2019 · 2 comments
Closed

Axes with log scales #20

ndalchau opened this issue Aug 28, 2019 · 2 comments

Comments

@ndalchau
Copy link

I can't find a way to specify a log-scale axis. Is this possible?

@kMutagene
Copy link
Member

kMutagene commented Aug 28, 2019

hi @ndalchau,

You can use a Log scale axis by initializing an Axis Object and using it for your chart:

Chart.Point([(0.,1.);(1.,10.);(2.;100.);(3.,1000.)])
|> Chart.withY_Axis(
        Axis.LinearAxis.init(StyleParam.AxisType.Log) 
    )

I hope this is helping

@ndalchau
Copy link
Author

Great, thanks!

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