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

different behavior for .show() and .write_image() with ticksuffix/tickprefix #4678

Open
StephaneBranly opened this issue Jul 18, 2024 · 0 comments
Labels
bug something broken P2 needed for current cycle

Comments

@StephaneBranly
Copy link

I noticied two different behavior while using (ticksuffix or tickprefix) and tickvals parameter to update an axis when I want to display or save the graph.

Plotly version : 5.22.0

Reproduction code :

import plotly.graph_objects as go
fig = go.Figure(
    data=[go.Bar(x=[1,2], y=[2,3]),],
    layout=dict(xaxis=dict(tickvals=[1,2],tickprefix='a', ticksuffix='b'))
)
fig.show()
fig.write_image(f"graphs/test.png", format="png")

.show() output :
image

.write_image() output :
test

@gvwilson gvwilson assigned gvwilson and unassigned gvwilson Jul 26, 2024
@gvwilson gvwilson added the P3 not needed for current cycle label Aug 12, 2024
@gvwilson gvwilson changed the title bug: different behavior for .show() and .write_image() with ticksuffix/tickprefix different behavior for .show() and .write_image() with ticksuffix/tickprefix Aug 13, 2024
@gvwilson gvwilson added bug something broken P2 needed for current cycle and removed P3 not needed for current cycle labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 needed for current cycle
Projects
None yet
Development

No branches or pull requests

2 participants