# You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # """Specialized markers.""" from matplotlib.path import Path import numpy as np __all__ = ('earth', 'reticle') earth = Path.unit_circle() verts = np.concatenate([earth.vertices, [[-1, 0], [1, 0], [0, -1], [0, 1]]]) codes = np.concatenate([earth.codes, [Path.MOVETO, Path.LINETO] * 2]) earth = Path(verts, codes) del verts, codes earth.__doc__ = """ The Earth symbol (circle and cross). Examples -------- .. plot:: :context: reset :include-source: :align: center from matplotlib import pyplot as plt from ligo.skymap.plot.marker import earth plt.plot(0, 0, markersize=20, markeredgewidth=2, markerfacecolor='none', marker=earth)