natverse / nat

NeuroAnatomy Toolbox: An R package for the (3D) visualisation and analysis of biological image data, especially tracings of single neurons.

Home Page:https://natverse.org/nat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Turn off grid lines when using plotly engine

alexanderbates opened this issue · comments

Have an easy to use option to turn off gridlines when using the plotly engine @SridharJagannathan . Should maybe be the default. Useful esp. when plotting figures.

This almost works, but somehow I loose transparency:

plot3d(JRC2018F, col = "black", alpha = 0.1, plotengine="plotly")%>%
    plotly::layout(
           scene = list(xaxis = list(title = '', autorange = TRUE, showgrid = FALSE, zeroline = FALSE, showline = FALSE, autotick = TRUE, ticks = '', showticklabels = FALSE),
                        yaxis = list(title = '', autorange = TRUE, showgrid = FALSE, zeroline = FALSE, showline = FALSE, autotick = TRUE, ticks = '', showticklabels = FALSE),
                        zaxis = list(title = '', autorange = TRUE, showgrid = FALSE, zeroline = FALSE, showline = FALSE, autotick = TRUE, ticks = '', showticklabels = FALSE)
           )
    )

Closed by #432