plotly / plotly.py

The interactive graphing library for Python :sparkles: This project now includes Plotly Express!
https://plotly.com/python/
MIT License
16.06k stars 2.54k forks source link

make all subplots display data when hovering instead of just current subplot #4621

Open BigBaiNB opened 3 months ago

BigBaiNB commented 3 months ago

【中文】 我希望 当hover在某一位置,所有子图对应的数值信息都显示出来,而不是只有当前的子图显示。

【Question】 I hope that when hovering over a specific position, all subplots display the corresponding value information, instead of only the current subplot.

self.figer = make_subplots(rows=nrows, cols=ncols, shared_xaxes=True,specs=specs, vertical_spacing=0.05 ) # 画布的figer self.figer.update_layout(

xaxis_rangeslider_visible=True,

        hovermode='x unified',
        spikedistance=-1
        )

效果还是不行 问题-信息显示