JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.84k stars 355 forks source link

Using the aspect_ratio flag with plotly is unreliable. #4891

Open eduardkieser opened 9 months ago

eduardkieser commented 9 months ago

My setup. Julia 1.9.4
Plots v1.39.0 PlotlyJS v0.18.12

using Plots
plotly()  
xs = [1,2,3, 4]  
ys = [10,20,30, 40]  
scatter(xs, ys, aspect_ratio=1)  

I can pass any number as well as :equal to the aspect_ratio argument without any affect on the plot.

..follow up. more testing with the same setup, now confirms that it does work.

..2nd follow up. The problem is back again.

Originally posted by @eduardkieser in https://github.com/JuliaPlots/Plots.jl/issues/4201#issuecomment-1958962899

jonniediegelman commented 2 months ago

I'm seeing the same issue. GR works fine, so it seems to be an issue with the Plotly backend.