[Python] Python Plotly - removing slider from plotly subplot

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    I am creating a figure with a number of subplots using plotly. One of the figures is an Ohlc/ candlestick that has a slider. In case of a single plot, the slider can be removed by fig.update_layout(xaxis_rangeslider_visible=False).

    However, this does not seem to work when the slider is in a subplot. Any idea how to remove the slider from the subplot ?

    I have a feeling that this will involve: fig.update_traces(meta=<VALUE>, selector=dict(type='ohlc')) and specify the subplot row, column in update_traces, but not quite sure how to properly choose the value for meta.

    Continue reading...

Compartilhe esta Página