yt.visualization.plot_modifications.ContourCallback

class yt.visualization.plot_modifications.ContourCallback(field, ncont=5, factor=4, clim=None, plot_args=None, label=False, take_log=None, label_args=None, text_args=None, data_source=None)[source]
annotate_contour(field, ncont=5, factor=4, take_log=None, clim=None,
plot_args=None, label=False, text_args=None, data_source=None):

Add contours in field to the plot. ncont governs the number of contours generated, factor governs the number of points used in the interpolation, take_log governs how it is contoured and clim gives the (upper, lower) limits for contouring. An alternate data source can be specified with data_source, but by default the plot’s data source will be queried.

Methods