File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,20 @@ The `type` axis property can be set to `'log'` to arrange axis ticks in log-scal
58
58
59
59
Here is an example of updating the x and y axes of a figure to be in log scale.
60
60
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 )
69
+ fig.update_xaxes(type = " log" )
70
+ fig.update_yaxes(type = " log" )
71
+
72
+ fig.show()
73
+ ```
74
+
61
75
``` python
62
76
import plotly.graph_objects as go
63
77
@@ -169,7 +183,7 @@ fig.update_yaxes(ticks="inside", col=1)
169
183
fig.show()
170
184
```
171
185
172
- ##### Set number of tick marks
186
+ ##### Set number of tick marks (and grid lines)
173
187
174
188
The approximate number of ticks displayed for an axis can be specified using the ` nticks ` axis property.
175
189
You can’t perform that action at this time.
0 commit comments