Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hoversubplots=axis not working with make_subplots #4603

Open
Labels
P3backlogbugsomething brokensev-3annoyance with workaround
@Coding-with-Adam

Description

@Coding-with-Adam

Initially reported on thePlotly forum.

Using make_subplots means that thehoversubplots=“axis” will not work correctly.

Sample code that produces the error:
Codepen.

import plotly.graph_objects as gofrom plotly import datafrom plotly.subplots import make_subplotsdf = data.stocks()fig = make_subplots(rows=3, cols=1, shared_xaxes=True, vertical_spacing=0.03)layout = dict(    hoversubplots="axis",    title="Stock Price Changes",    hovermode="x",    grid=dict(rows=3, columns=1),)fig.add_trace(go.Scatter(x=df["date"], y=df["AAPL"], name="Apple"), row=1, col=1)fig.add_trace(go.Scatter(x=df["date"], y=df["GOOG"], name="Google"), row=2, col=1)fig.add_trace(go.Scatter(x=df["date"], y=df["AMZN"], name="Amazon"), row=3, col=1)fig.update_layout(layout)fig.show()

bdc0bda148a0bc897f35bde5ac36eda09b53f731_2_1035x496

Expected behavior should be the same as when using the Plotly docshover on subplots example, where hover labels appear for all charts:
Codepen.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething brokensev-3annoyance with workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp