yt.data_objects.profiles.Profile2D.set_y_unit

Profile2D.set_y_unit(new_unit)[source]

Sets a new unit for the y field

Parameters:

new_unit : string or Unit object

The name of the new unit.