yt.data_objects.profiles.Profile2D.set_x_unit

Profile2D.set_x_unit(new_unit)[source]

Sets a new unit for the x field

Parameters:

new_unit : string or Unit object

The name of the new unit.