ticks display very large and very small numbers poorly
See original GitHub issueWe often need to plot very large or very small numbers. ScottPlot’s recent version is not able to render such plots. If we use large numbers, it starts to consume up GBs of RAM, eventually crashing the app.
double[] xs = new double[] { 1, 2, 3, 4, 5 };
double[] ys = new double[] { 1E15, 4E15, 9E15, 16E15, 25E15 };
scottPlotUC1.plt.PlotScatter(xs, ys);
scottPlotUC1.Render();
If we try to display very small numbers, it works, but not showing the numbers at the axis ticks. Could this be fixed somehow? I think the fix should contain adding new features to the package, we could call it like “AxisScaling”. Here we could set the formatting of the axis numbers (number of digits, precision, scientific/engineering/normal/… number formats )…
What do you think?
edit: my temporary workaround is that, I divide the large array by 1E15, then name the axis as “1E15 unit”.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (13 by maintainers)
Top GitHub Comments
Sorry if I sound unpolite, but most of the issues you reported have workarounds or can be faced with alternative approach. i’m a beginner too, and Scott is great in polishing the code up after me.it helps me improving my c#.So don’t be shy.
----- Messaggio Originale ----- Da: “swharden/ScottPlot” A:“swharden/ScottPlot” Cc:“Alessandro Mandelli” , “Mention” Inviato:Fri, 26 Jul 2019 12:02:40 +0000 (UTC) Oggetto:Re: [swharden/ScottPlot] Unable to Render plot with very large/small numbers (#54)
obvious workaround. However, I think it could be a basic feature of ScottPlot to be able to handle very large/small numbers…
then name the axis as “1E15 unit”.
beginner. If you do not want me, who is just a simple user, to report found issues, you can tell me directly 😉 Do not misunderstand me, I am very grateful for those who contribute to this package by coding, unfortunately I can now only give ideas and report findings as a simple user…
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub [2], or mute the thread [3]. [ { “@context”: “http://schema.org”, “@type”: “EmailMessage”, “potentialAction”: { “@type”: “ViewAction”, “target”: “https://github.com/swharden/ScottPlot/issues/54?email_source=notificationsu0026email_token=AB3I2BCF3XRCQNTSBKAGYFDQBLRVTA5CNFSM4IHDC4F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24MEPI#issuecomment-515424829”, “url”: “https://github.com/swharden/ScottPlot/issues/54?email_source=notificationsu0026email_token=AB3I2BCF3XRCQNTSBKAGYFDQBLRVTA5CNFSM4IHDC4F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24MEPI#issuecomment-515424829”, “name”: “View Issue” }, “description”: “View this Issue on GitHub”, “publisher”: { “@type”: “Organization”, “name”: “GitHub”, “url”: “https://github.com” } } ]
Links:
[1] https://github.com/Padanian [2] https://github.com/swharden/ScottPlot/issues/54?email_source=notifications&email_token=AB3I2BCF3XRCQNTSBKAGYFDQBLRVTA5CNFSM4IHDC4F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24MEPI#issuecomment-515424829 [3] https://github.com/notifications/unsubscribe-auth/AB3I2BAYWKTLMV6UVIJXOLLQBLRVTANCNFSM4IHDC4FQ
this issue will be corrected when the tick module is refactored (issue #57)