EOmaps
v5.4

How to use EOmaps:

  • 🌳 General
  • βš™ Usage
    • πŸš€ Basics
    • 🧰 Companion Widget
    • πŸ›Έ Callbacks - make the map interactive!
    • πŸ›° WebMap layers
    • 🌡 NaturalEarth features
    • πŸ’  GeoDataFrames
    • πŸ• Annotations, Markers, Lines, Logos, etc.
      • πŸ”΄ Markers
      • πŸ“‘ Annotations
      • 🚲 Lines
      • β–­ Rectangular areas
      • πŸ₯¦ Logos
        • add_logo
    • 🌈 Colorbars (with a histogram)
    • πŸ“ Scalebars
    • 🧭 Compass (or North Arrow)
    • 🦜 Utility widgets
    • πŸ”¬ Inset-maps - zoom-in on interesting areas
    • ✏️ Draw Shapes on the map
    • πŸ—οΈ Layout Editor
    • πŸ“¦ Reading data (NetCDF, GeoTIFF, CSV…)
    • πŸ”Έ Miscellaneous
  • πŸ‘€ FAQ

Code-examples:

  • 🌐 EOmaps examples
EOmaps
  • βš™ Usage
  • add_logo
  • Edit on GitHub

add_logo

Maps.add_logo(filepath=None, position='lr', size=0.12, pad=0.1, layer='all', fix_position=False)

Add a small image (png, jpeg etc.) to the map whose position 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, optional) – The layer at which the logo should be visible. The default is β€œall”.

  • 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.

Previous Next

© Copyright . Revision ec4aabc3.

Built with Sphinx using a theme provided by Read the Docs.