Skip to content

ticks display very large and very small numbers poorly #54

@bukkideme

Description

@bukkideme

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions