yt.visualization.profile_plotter.PhasePlot.set_ylim

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

Sets the plot limits for the y bin field.

Parameters:

ymin : float or None

The new y minimum. Defaults to None, which leaves the ymin unchanged.

ymax : float or None

The new y maximum. Defaults to None, which leaves the ymax unchanged.

Examples

>>> import yt
>>> ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
>>> pp = yt.PhasePlot(ds.all_data(), 'density', 'temperature', 'cell_mass')
>>> pp.set_ylim(1e4, 1e6)
>>> pp.save()