Skip to content
Discussion options

You must be logged in to vote

Hi @txhy2018,

There's currently no official way to set config options for ui.plotly, but a workaround:

fig = go.Figure()
fig.add_trace(go.Scatter(x=[1, 2, 3], y=[1, 3, 1]))
plot = ui.plotly(fig)
plot._props['options']['config'] = {'modeBarButtonsToRemove': ['zoom', 'pan']}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by xiaozhiagi
Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Comment options

You must be logged in to vote
1 reply
@pylogger-html
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants