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

Submit an issue to JSROOT about limits of log plot #174

Open
grzanka opened this issue Jan 2, 2022 · 2 comments
Open

Submit an issue to JSROOT about limits of log plot #174

grzanka opened this issue Jan 2, 2022 · 2 comments

Comments

@grzanka
Copy link
Contributor

grzanka commented Jan 2, 2022

It seems that logarithmic plot can display only 4 decades (orders of magnitude) on vertical axis, despite setting limit to 6 decades (from 1e-4 to 1e2

        hist.fYaxis.fTitle = `Stopping power [${stpUnit.name}]`
        hist.fYaxis.fXmin = 1e-4
        hist.fYaxis.fXmax = 1e+2

https://github.com/APTG/dedx_web/blob/master/src/Components/Pages/Plot/JSRootGraph.js#L32

Please submit an issue to JSROOT repo with a code to reproduce that issue written on https://jsfiddle.net/, see comments here:
root-project/jsroot#225 (comment)

@grzanka
Copy link
Contributor Author

grzanka commented Jan 3, 2022

Done in root-project/jsroot#226

@grzanka
Copy link
Contributor Author

grzanka commented Jan 3, 2022

Seems easy to implement, use:

        graph1.fMinimum = 1e-4
        graph1.fMaximum = 1e+2

I've discovered that by reading example code https://github.com/root-project/jsroot/blob/master/demo/multigraph_legend.htm#L79

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

1 participant