ProjectionPlot.
set_axes_unit
(*args, **kwargs)¶Set the unit for display on the x and y axes of the image.
Parameters: | unit_name : string or two element tuple of strings
|
---|---|
Raises: | YTUnitNotRecognized :
|
Examples
>>> from yt import load
>>> ds = load("IsolatedGalaxy/galaxy0030/galaxy0030")
>>> p = ProjectionPlot(ds, "y", "Density")
>>> p.set_axes_unit("kpc")