Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68632d4

Browse files
committedJan 15, 2020
address review comments
1 parent 3cb490b commit 68632d4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed
 

‎doc/python/axes.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ The `type` axis property can be set to `'log'` to arrange axis ticks in log-scal
5858

5959
Here is an example of updating the x and y axes of a figure to be in log scale.
6060

61+
```python
62+
import plotly.express as px
63+
import numpy as np
64+
65+
x = np.arange(10)
66+
67+
fig = px.scatter(x=x,
68+
y=x**3)
Code has comments. Press enter to view.
69+
fig.update_xaxes(type="log")
70+
fig.update_yaxes(type="log")
71+
72+
fig.show()
73+
```
74+
6175
```python
6276
import plotly.graph_objects as go
6377

@@ -169,7 +183,7 @@ fig.update_yaxes(ticks="inside", col=1)
169183
fig.show()
170184
```
171185

172-
##### Set number of tick marks
186+
##### Set number of tick marks (and grid lines)
173187

174188
The approximate number of ticks displayed for an axis can be specified using the `nticks` axis property.
175189

0 commit comments

Comments
 (0)
Please sign in to comment.