yt.visualization.plot_modifications.
MarkerAnnotateCallback
(pos, marker='x', coord_system='data', plot_args=None)[source]¶annotate_marker(pos, marker=’x’, coord_system=”data”, plot_args=None):
Overplot a marker on a position for highlighting specific features.
Parameters: | pos : 2- or 3-element tuple, list, or array
marker : string, optional
coord_system : string, optional
plot_args : dictionary, optional
|
---|
Examples
>>> # Overplot a white X on a feature at data location (0.5, 0.5, 0.5)
>>> import yt
>>> ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
>>> s = yt.SlicePlot(ds, 'z', 'density')
>>> s.annotate_marker([0.4, 0.5, 0.6])
>>> s.save()
>>> # Overplot a big yellow circle at axis location (0.1, 0.2)
>>> import yt
>>> ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030')
>>> s = yt.SlicePlot(ds, 'z', 'density')
>>> s.annotate_marker([0.1, 0.2], marker='o', coord_system='axis',
... plot_args={'color':'yellow', 's':200})
>>> s.save()
Methods