add_colorbar

MapsGrid.add_colorbar(pos=0.4, inherit_position=None, orientation='horizontal', hist_bins=256, hist_size=0.8, out_of_range_vals='clip', tick_precision=2, dynamic_shade_indicator=False, extend=None, extend_frac=0.025, log=False, label=None, outline=False, hist_kwargs=None, hist_label=None, margin=None, divider_linestyle=None, layer=None, **kwargs)

This will execute the corresponding action on ALL Maps objects of the MapsGrid!

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.