JuliaPlots / JuliaPlots/PlotlyJS.jl

autosize: Does it work?

Open
#312 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

I have a 3D plot, and I set `autosize = "true"` or `autosize = true`.
Neither form allows me to resize the window and have the 3D plot resize itself.

I am doing it like this for the layout:
```
layout = Layout(width="100%", height="100%", autosize=true, title=title,
scene=attr(
xaxis=attr(title="X", gridcolor="rgb(255, 255, 255)",
zerolinecolor="rgb(255, 255, 255)",
showbackground=true,
backgroundcolor=BACKGROUNDCOLOR),
yaxis=attr(title="Y", gridcolor="rgb(255, 255, 255)",
zerolinecolor="rgb(255, 255, 255)",
showbackground=true,
backgroundcolor=BACKGROUNDCOLOR),
zaxis=attr(title="Z", gridcolor="rgb(255, 255, 255)",
zerolinecolor="rgb(255, 255, 255)",
showbackground=true,
backgroundcolor=BACKGROUNDCOLOR),
aspectratio=attr(x=aspectratio[1], y=aspectratio[2], z=aspectratio[3]),
aspectmode = "manual"),
showlegend=false,
)
```
No discernible effect.

Julia 1.5
[f0f68f2c] PlotlyJS v0.13.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.