-
Notifications
You must be signed in to change notification settings - Fork 5
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
Plots integration #13
Comments
Thanks for sharing this, definitely worth digging into it! |
BTW: I cannot find julia> using Plots
julia> Plots.plotlybase_syncplot
ERROR: UndefVarError: plotlybase_syncplot not defined |
It's in here. |
Confirmed. |
Just want to add a hint that there is function to_plotly_base(pl)
if isdefined(Plots, :plotlybase_syncplot)
current_backend = Plots.backend()
Plots.plotly() === current_backend || Plots.backend(current_backend)
end
pl = Plots.plotlybase_syncplot(pl)
pop!(pl.layout, :height)
pop!(pl.layout, :width)
pl.layout.fields[:margin] = Dict(:l=>50, :b=>50, :r=>50, :t=>60)
return pl
end Anyhow, I proposed a PR to also add a |
With some painful reverse engineering, I realised that we can use Plots.jl to integrate with StripplePlotly with the following:
It would be nice if this could be done automatically.
(The margins are the default from PlotlyBase, because the default from Plots jl get cropped when using them with stripple)
The text was updated successfully, but these errors were encountered: