question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ticks display very large and very small numbers poorly

See original GitHub issue

We 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:closed
  • Created 4 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Padaniancommented, Jul 26, 2019

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)

@Padanian [1] Just directly after posting, I edited it with this

obvious workaround. However, I think it could be a basic feature of ScottPlot to be able to handle very large/small numbers…

my temporary workaround is that, I divide the large array by 1E15,

then name the axis as “1E15 unit”.

Thanks for inviting me to contribute, but my C# skills are still very

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

0reactions
swhardencommented, Jul 29, 2019

this issue will be corrected when the tick module is refactored (issue #57)

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - reducing number of plot ticks
I have too many ticks on my graph and they are running into each other. How can I reduce the number of ticks?...
Read more >
pgfplots - How to deal with large numbers in chart axis labels
The way pgfplots deals with them is that, it puts a large factor (say $10^18$) on top of the figure and chooses the...
Read more >
10 Types of Ticks That Transmit Diseases
Look for: Seed ticks are very small in size and can look like a freckle, mole, or poppy seed. In general, seed ticks...
Read more >
Why Lyme and other tick-borne diseases are on the rise
And when tick numbers are very high, they'll pose a risk to people even if rates of infected ticks are low, says Gilbert....
Read more >
Ticks and Tick-borne Diseases
It seems to be a poor vector for Rocky Mountain spotted fever and Lyme disease. Host associations. Lone star ticks are very aggressive,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found