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

Commit 60a377c

Browse files
Make small formatting changes
1 parent 2ecd080 commit 60a377c

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

‎doc/python/axes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ fig.update_yaxes(zeroline=True, zerolinewidth=2, zerolinecolor='LightPink')
619619
fig.show()
620620
```
621621

622-
##### Controlling zero line layer
622+
##### Controlling Zero Line Layer
623623

624624
*New in 6.3*
625625

‎doc/python/legend.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -258,20 +258,20 @@ fig.show()
258258

259259
*New in 6.3*
260260

261-
By default, a legend can expand to fill up to half of the layout area height for a horizontal legend and the full height for a vertical legend. You can specify the maximum height of a legend with the `maxheight` parameter. In the following plot with many legend items, we set `maxheight` to a ratio of 0.10, giving the plot more space.
261+
By default, a legend can expand to fill up to half of the layout area height for a horizontal legend and the full height for a vertical legend. You can change this by specifying a `maxheight` for the legend. In the following plot with many legend items, we set `maxheight` to a ratio of 0.10, giving the plot more space.
262262

263263
```python
264264
import plotly.express as px
265265
from plotly import data
266266

267267
df = data.gapminder().query("year==2007 and continent == 'Europe'")
268268

269-
fig = px.scatter(df,
270-
x="gdpPercap",
271-
y="lifeExp",
269+
fig = px.scatter(df,
270+
x="gdpPercap",
271+
y="lifeExp",
272272
color="country",
273-
size="pop",
274-
size_max=45,
273+
size="pop",
274+
size_max=45,
275275
title="Life Expectancy vs. GDP per Capita in 2007 (by Country)",
276276
labels={"gdpPercap": "GDP per Capita"},
277277
)

‎doc/python/log-plot.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,26 @@ By default, minor log labels use small digits, as shown in the previous example.
8888

8989
```python
9090
import plotly.express as px
91+
9192
df = px.data.gapminder().query("year == 2007")
9293

9394
fig = px.scatter(
9495
df, x="gdpPercap",
9596
y="lifeExp",
9697
hover_name="country",
97-
log_x=True, range_x=[1,100000], range_y=[0,100])
98-
99-
fig.update_xaxes(minor=dict(ticks="inside", ticklen=6, showgrid=True),
100-
minorloglabels="complete")
98+
log_x=True,
99+
range_x=[1,100000],
100+
range_y=[0,100]
101+
)
102+
103+
fig.update_xaxes(
104+
minor=dict(
105+
ticks="inside",
106+
ticklen=6,
107+
showgrid=True
108+
),
109+
minorloglabels="complete"
110+
)
101111

102112
fig.show()
103113
```

0 commit comments

Comments
(0)

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