You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example sets `standoff` attribute to cartesian axes to determine the distance between the tick labels and the axis title. Note that the axis title position is always constrained within the margins, so the actual standoff distance is always less than the set or default value. By default [automargin](https://plot.ly/python/setting-graph-size/#automatically-adjust-margins) is `True` in Plotly template for the cartesian axis, so the margins will be pushed to fit the axis title at given standoff distance.
228
+
229
+
```python
230
+
import plotly.graph_objects as go
231
+
232
+
fig = go.Figure(go.Scatter(
233
+
mode="lines+markers",
234
+
y= [4, 1, 3],
235
+
x= ["December", "January", "February"]))
236
+
237
+
fig.update_layout(
238
+
xaxis= go.layout.XAxis(
239
+
tickangle=90,
240
+
title_text="Month",
241
+
title_font= {"size": 20},
242
+
title_standoff=25),
243
+
yaxis= go.layout.YAxis(
244
+
title_text="Temperature",
245
+
title_standoff=25))
246
+
247
+
fig.show()
248
+
```
249
+
225
250
##### Set axis title font
226
251
Here is an example that configures the font family, size, and color for the axis titles in a figure created using Plotly Express.
0 commit comments