Changing the xaxis title/label position?


#1

How can you reduce the spacing between the graph and the xaxis title position? I digged through the documentation to no avail.


#2

Hi @mathieuboudreau,

Unfortunately I don’t think there are any options to set this spacing. The workaround is to use annotations in ‘paper’ coordinates. Here’s an example of doing just this for labeling axes (https://plot.ly/python/text-and-annotations/#adding-annotations-with-xref-and-yref-as-paper).

Hope that helps,
-Jon


#3

Cool – that’s exactly the type of workaround I was looking for.

It worked perfectly!

A+