Skip to content

Commit b51748c

Browse files
committed
Update axes.md
1 parent f782065 commit b51748c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/python/axes.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.14.7
9+
jupytext_version: 1.15.1
1010
kernelspec:
1111
display_name: Python 3 (ipykernel)
1212
language: python
@@ -561,7 +561,7 @@ fig.show()
561561

562562
#### Setting only a Lower or Upper Bound for Range
563563

564-
*New in 5.16*
564+
*New in 5.17*
565565

566566
You can also set just a lower or upper bound manually and have autorange applied to the other bound by setting it to `None`. In the following example, we set a an upper bound of 4.5 on the x axes, while specifying `None` for the lower bound, meaning it will use autorange. On the y axes, we set the lower bound, and use `None` for the upper bound, meaning that uses autorange.
567567

@@ -578,7 +578,7 @@ fig.show()
578578

579579
#### Setting a Maximum and Minimum Allowed Axis Value
580580

581-
*New in 5.16*
581+
*New in 5.17*
582582

583583
When setting a range manually, you can also set a `maxallowed` or `minallowed` for an axis. With this set, you won't be able to pan further than the min or max allowed. In this example, we've set the minimum allowed on the x-axis to 1 and the maximum allowed on the y-axis to 10.
584584

@@ -728,17 +728,17 @@ fig.update_yaxes(range=[9, 3])
728728
fig.show()
729729
```
730730

731-
*New in 5.16*
731+
*New in 5.17*
732732

733-
To use a reversed axis while specifying only an upper or lower bound for the range, set `autorange="reversed"`:
733+
To use a reversed axis while specifying only a lower bound for the range, set `autorange="min reversed"`:
734734

735735
```python
736736
import plotly.express as px
737737

738738
df = px.data.iris()
739739

740740
fig = px.scatter(df, x="sepal_width", y="sepal_length", facet_col="species")
741-
fig.update_yaxes(range=[9, None], autorange="reversed")
741+
fig.update_yaxes(range=[9, None], autorange="min reversed")
742742

743743
fig.show()
744744
```
@@ -827,7 +827,7 @@ fig.show()
827827

828828
#### Autorange Options
829829

830-
*New in 5.16*
830+
*New in 5.17*
831831

832832
You can further configure how autorange is applied using `autorangeoptions` to specify maximum or minimum values or values to include.
833833

0 commit comments

Comments
 (0)