Profile1D.
set_x_unit
Sets a new unit for the x field
new_unit : string or Unit object
The name of the new unit.