yt.visualization.profile_plotter.ProfilePlot.set_xlim

ProfilePlot.set_xlim(*args, **kwargs)[source]

Sets the limits of the bin field

Parameters:

xmin : float or None

The new x minimum. Defaults to None, which leaves the xmin unchanged.

xmax : float or None

The new x maximum. Defaults to None, which leaves the xmax unchanged.

Examples

>>> import yt
>>> ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
>>> pp = yt.ProfilePlot(ds.all_data(), 'density', 'temperature')
>>> pp.set_xlim(1e-29, 1e-24)
>>> pp.save()