Skip to content

Commit e5cd7b5

Browse files
committed
Update axes.md
1 parent 3eb06f6 commit e5cd7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/axes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ fig.show()
158158

159159
*New in 5.14*
160160

161-
With `labelalias`, you can specify replacement text for specific tick and hover labels. In this example, the dataset has the values of "Sat" and "Sun" in the day column. By setting `labelalias=dict(Sat= "Saturday", Sun="Sunday")`, we swap these out for "Saturday" and "Sunday".
161+
With `labelalias`, you can specify replacement text for specific tick and hover labels. In this example, the dataset has the values of "Sat" and "Sun" in the day column. By setting `labelalias=dict(Sat="Saturday", Sun="Sunday")`, we swap these out for "Saturday" and "Sunday".
162162

163163
```python
164164
import plotly.express as px
@@ -168,7 +168,7 @@ df = px.data.tips()
168168
df = df[df.day.isin(['Sat', 'Sun'])].groupby(by='day', as_index=False).sum(numeric_only=True)
169169

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

173173
fig.show()
174174
```

0 commit comments

Comments
 (0)