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

Inconistent numeric format on logarithmic axis labels #132

Closed
AndiMD opened this issue Jul 27, 2017 · 4 comments
Closed

Inconistent numeric format on logarithmic axis labels #132

AndiMD opened this issue Jul 27, 2017 · 4 comments

Comments

@AndiMD
Copy link

AndiMD commented Jul 27, 2017

Hi all,

Numeric formats for axis labels are inconsistent. See example code and plot attached.
I'm on Linux, Julia 0.6 with Plots 0.12.0,PlotlyJS 0.6.4.

using PlotlyJS
xdata = logspace(22, 27, 100)
ydata = 1 ./ log.(xdata)
plot(scatter(; x = xdata, y = ydata, mode = "lines"), Layout(xaxis_type = "log"))

xaxis

CrossRef: JuliaPlots/Plots.jl#973

@sglyon
Copy link
Member

sglyon commented Jul 28, 2017

HI @AndiMD I wish I had more to say, but this seems like something better suited for the plotly.js repo or even the discussion forum. It seems that this is a result of how the javascript library is interpreting your data, not anything that happens on the Julia side.

@AndiMD
Copy link
Author

AndiMD commented Jul 28, 2017

@sglyon: Thanks for your response. Unfortunately, they state that "Bug reports must be accompanied with a reproducible example." and I do not know Plotly or JavaScript.

@sglyon
Copy link
Member

sglyon commented Jul 28, 2017

It might be best to start at the discussion forum. If that doesn't seem like the right solution to you can an try the following:

So if you have a PlotlyJS plot object named p you can try doing

savefig(p, "plotly_bug.html"; js=:remote)

to have it write out all the html/javascript needed to reproduce your plot.

Hope that helps!

@AndiMD
Copy link
Author

AndiMD commented Jul 30, 2017

@sglyon: Thanks for your recommendation, but I would rather not create yet another account in the discussion forum for (probably) just one post.

New issue:
plotly/plotly.js#1920

@sglyon sglyon closed this as completed Jul 30, 2017
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

2 participants