Skip to content

Label aliases does not work at MacOS #4173

Closed
@MorozovG

Description

@MorozovG

The example provided in the documentation for Label Aliases does not work as expected at MacOS.

import plotly.express as px
import pandas as pd

df = px.data.tips()
df = df[df.day.isin(['Sat', 'Sun'])].groupby(by='day', as_index=False).sum(numeric_only=True)

fig = px.bar(df, x="day", y="total_bill")
fig.update_xaxes(labelalias=dict(Sat="Saturday", Sun="Sunday"))

fig.show()

This is how it should look like:
image
And what it looks like when I run the code:
image
Plotly version - 5.14.1. Python 3.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions