Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update_yaxes mirror not working #4940

Open
ohyoohwan opened this issue Dec 11, 2024 · 0 comments
Open

Update_yaxes mirror not working #4940

ohyoohwan opened this issue Dec 11, 2024 · 0 comments
Labels
bug something broken P3 backlog

Comments

@ohyoohwan
Copy link

When I set the mirror value to True in the update_yaxes function, I expected the right line of the graph to be drawn, but it is not drawn.

fig_combine = go.Figure()
color_index = 0
fig_combine.add_trace(go.Bar
                            (x=[1,2,3,4,5,6,7,8], y=[1,2,3,4,5,6,7,8,9], name=f"test", marker=dict(color=colors[color_index]), opacity=0.7))

fig_combine.update_layout(
                        width=650,
                        height=700,
                        title=dict(text=f"{fraction} Fraction", font=dict(size=20, color="black"), x=0.5, y=0.9, xanchor="center", yanchor="top"),
                        barmode="overlay"
                        )
fig_combine.update_layout(legend=dict(orientation="v", xanchor="center", yanchor="top", x=0.13, y=0.99, bgcolor='rgba(255, 255, 255, 0.5)'))
fig_combine.update_xaxes(
                        title="Equivalent Circle Diameter(ECD, µm)",
                        showgrid=True,
                        range=[0, 9],
                        dtick=0.5,
                        showline = True,
                        mirror = True
                        )
fig_combine.update_yaxes(
                        title=f"{fraction} Fraction(%)",
                        showgrid=True,
                        range=[0, 9],
                        dtick=2,
                        showline = True,
                        **mirror = True**
                        )

Image

@gvwilson gvwilson added bug something broken P3 backlog labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants