yt.visualization.profile_plotter.PhasePlot.set_unit

PhasePlot.set_unit(*args, **kwargs)[source]

Sets a new unit for the requested field

Parameters:

field : string

The name of the field that is to be changed.

new_unit : string or Unit object

The name of the new unit.