Skip to content

Inconistent numeric format on logarithmic axis labels #1920

Closed
@AndiMD

Description

@AndiMD

Hi all,

The following example shows inconsistent x-axis labels.
Result: 10e+21, 100e+21, 1e+24, 10e+24, 100e+24, 1e+27
Expected: 1e+22, 1e+23, 1e+24, 1e+25, 1e+26, 1e+27

Can this be improved? Thanks!

<html>
<head> <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> </head>
<body> 
<div id="TEST" class="plotly-graph-div"></div>
<script>
    window.PLOTLYENV=window.PLOTLYENV || {};
    window.PLOTLYENV.BASE_URL="https://plot.ly";
    Plotly.newPlot('TEST', [{"mode":"lines","y":[0.0,1.0],"type":"scatter","x":[1.0e22,1.0e27]}],
               {"xaxis":{"type":"log"},"margin":{"l":50,"b":50,"r":50,"t":60}}, {showLink: false});
</script>
</body>
</html>

CrossRef: JuliaPlots/PlotlyJS.jl#132

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions