Maps.add_logo#
- Maps.add_logo(filepath=None, position='lr', size=0.12, pad=0.1, layer=None, fix_position=False)#
Add a small image (png, jpeg etc.) to the map.
The position of the image is dynamically updated if the plot is resized or zoomed.
- Parameters:
filepath (str, optional) – if str: The path to the image-file. The default is None in which case an EOmaps logo is added to the map.
position (str, optional) – The position of the logo. - “ul”, “ur” : upper left, upper right - “ll”, “lr” : lower left, lower right The default is “lr”.
size (float, optional) – The size of the logo as a fraction of the axis-width. The default is 0.15.
pad (float, tuple optional) – Padding between the axis-edge and the logo as a fraction of the logo-width. If a tuple is passed, (x-pad, y-pad) The default is 0.1.
layer (str or None, optional) – The layer at which the logo should be visible. If None, the logo will be added to all layers and will be drawn on top of all background artists. The default is None.
fix_position (bool, optional) –
If True, the relative position of the logo (with respect to the map-axis) is fixed (and dynamically updated on zoom / resize events)
NOTE: If True, the logo can NOT be moved with the layout_editor! The default is False.