-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
axis attributes do not work for scatter3d #287
Comments
Hmm, I cannot get any data to show when I run your example, but I believe I might still know the problem. In the Plotly.js api you need to specify axis attributes for 3d plots in inside So, I think this example should be written : using PlotlyJS
function errorbars1()
trace1 = PlotlyJS.scatter3d(;x=vcat(1:10, 10:-1:1),
y=vcat(2:11, 9:-1:0),z=vcat(2:11, 9:-1:0),
fill="tozerox",
fillcolor="rgba(0, 100, 80, 0.2)",
line_color="transparent",
name="Fair",
showlegend=false)
data = [trace1]
layout = Layout(;paper_bgcolor="rgb(255, 255, 255)",
plot_bgcolor="rgb(229, 229, 229)",
showticklabels=false,
scene=attr(
xaxis=attr(
gridcolor="rgb(255, 255, 255)",
range=[1, 10],
showgrid=true,
showline=false,
showticklabels=false,
tickcolor="rgb(127, 127, 127)",
ticks="outside",
zeroline=false
),
yaxis=attr(
gridcolor="rgb(255, 255, 255)",
showgrid=false,
showline=false,
showticklabels=false,
tickcolor="rgb(127, 127, 127)",
ticks="outside",
zeroline=false
),
zaxis=attr(
gridcolor="rgb(255, 255, 255)",
showgrid=false,
showline=false,
showticklabels=false,
tickcolor="rgb(127, 127, 127)",
ticks="outside",
zeroline=false
)
)
)
PlotlyJS.plot(data, layout)
end
errorbars1() |
thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I can not specify axis attributes in scatter3d. It works in 2D scatter.
You can reproduce this with the following code:
Please provide the following:
versioninfo()
using Pkg; pkg"status"
(if you are on Julia 0.6 or earlier runPkg.status()
)The text was updated successfully, but these errors were encountered: