Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add docs updates for Plotly.py v6.3 #5269

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

Merged
camdecoster merged 21 commits into main from docs-update-next-release
Aug 12, 2025
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4911830
Add zero line layer example
LiamConnors Jul 7, 2025
3465529
add pattern path example
LiamConnors Jul 7, 2025
ec640bd
add max height example
LiamConnors Jul 7, 2025
72fb5cd
Merge branch 'main' into docs-update-next-release
LiamConnors Jul 28, 2025
d9ec816
Add modebar button disable example
LiamConnors Jul 29, 2025
f19bbf8
Add Minor Log Labels example
LiamConnors Jul 29, 2025
2ecd080
Add unifiedhovertitle example
LiamConnors Jul 29, 2025
60a377c
Make small formatting changes
LiamConnors Jul 29, 2025
3ecefef
add map updates
LiamConnors Aug 5, 2025
75af440
fix wording
LiamConnors Aug 5, 2025
3d9ea84
Merge branch 'main' into docs-update-next-release
LiamConnors Aug 5, 2025
ce6ae1b
Update doc/python/choropleth-maps.md
LiamConnors Aug 6, 2025
377db50
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
cd57c41
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
d4d9a3c
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
16e454a
Make small updates
LiamConnors Aug 6, 2025
7ae4694
Merge branch 'docs-update-next-release' of https://github.com/plotly/...
LiamConnors Aug 6, 2025
a03c3de
Update legend.md
LiamConnors Aug 6, 2025
c72d9a1
Update doc/python/map-configuration.md
LiamConnors Aug 6, 2025
052efc9
Update doc/python/choropleth-maps.md
LiamConnors Aug 6, 2025
c7a38b6
Merge remote-tracking branch 'origin/main' into docs-update-next-release
camdecoster Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add zero line layer example
  • Loading branch information
LiamConnors committed Jul 7, 2025
commit 4911830f675818061cc03493ba75341c828e268e
36 changes: 34 additions & 2 deletions doc/python/axes.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.16.3
jupytext_version: 1.17.2
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.10.14
version: 3.9.0
plotly:
description: How to adjust axes properties in Python - axes titles, styling and
coloring axes and grid lines, ticks, tick labels and more.
Expand Down Expand Up @@ -619,6 +619,38 @@ fig.update_yaxes(zeroline=True, zerolinewidth=2, zerolinecolor='LightPink')
fig.show()
```

##### Controlling zero line layer

*New in 6.3*

By default, zero lines are displayed below traces. Set `zerolinelayer="above traces"` on an axis to display its zero line above traces:

```python
import plotly.graph_objects as go

x = ['A', 'B', 'C', 'D', 'A']
y = [2, 0, 4, -3, 2]

fig = go.Figure(
data=[
go.Scatter(
x=x,
y=y,
fill='toself',
mode='none',
fillcolor='lightpink'
)
],
layout=dict(
yaxis=dict(
zerolinelayer="above traces" # Change to "below traces" to see the difference
),
)
)

fig.show()
```

#### Setting the Range of Axes Manually

The visible x and y axis range can be configured manually by setting the `range` axis property to a list of two values, the lower and upper bound.
Expand Down

AltStyle によって変換されたページ (->オリジナル) /