matplotlib.artist.Artist.set_gid Artist.set_gid(gid) Set the (group) id for the artist. Parameters: gid : str Examples using matplotlib.artist.Artist.set_gid