natverse / nat

NeuroAnatomy Toolbox: An R package for the (3D) visualisation and analysis of biological image data, especially tracings of single neurons.
https://natverse.org/nat/
64 stars 28 forks source link

Turn off grid lines when using plotly engine #427

Closed alexanderbates closed 4 years ago

alexanderbates commented 4 years ago

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.

alexanderbates commented 4 years ago

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)
           )
    )
jefferis commented 4 years ago

Closed by #432