yt.visualization.profile_plotter.ProfilePlot.set_line_property

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

Set properties for one or all lines to be plotted.

Parameters:

property : str

The line property to be set.

value : str, int, float

The value to set for the line property.

index : int

The index of the profile in the list of profiles to be changed. If None, change all plotted lines. Default : None.

Examples

Change all the lines in a plot plot.set_line_property(“linestyle”, “-”)

Change a single line. plot.set_line_property(“linewidth”, 4, index=0)