EOmaps
v7.3.3

General

  • πŸ› Installation
  • πŸ‘€ FAQ

How to use EOmaps

  • 🌱 Basics
  • πŸ”΄ Data Visualization

Map Features

  • πŸ”¬ Inset Maps
  • 🌡 NaturalEarth features
  • πŸ›° WebMap layers
  • πŸ’  Vector Data
  • πŸ• Annotations, Markers, Logos, etc.
  • πŸ“ Scalebars
  • 🧭 Compass (or North Arrow)
  • β–¦ Gridlines

Interactivity

  • πŸ›Έ Callbacks
  • 🧰 Companion Widget
  • πŸ—οΈ Layout Editor
  • ✏️ Draw shapes on the map
  • πŸ”¦ Utilities

Miscellaneous

  • πŸ“¦ Reading data
  • β›­ Command Line Interface
  • πŸ“šLogging
  • πŸ”Έ Miscellaneous

Examples

  • πŸ—Ί EOmaps examples

Contribute

  • πŸš€ Contribution Guide

API Reference

  • eomaps
    • set_loglevel
    • annotation_editor
    • callbacks
      • ClickCallbacks
        • ClickCallbacks
        • __init__
        • annotate
        • clear_annotations
        • clear_markers
        • get_values
        • load
        • mark
        • peek_layer
        • plot
        • print_to_console
      • KeypressCallbacks
      • MoveCallbacks
      • PickCallbacks
    • cb_container
    • colorbar
    • compass
    • draw
    • eomaps
    • grid
    • helpers
    • inset_maps
    • mapsgrid
    • ne_features
    • projections
    • reader
    • scalebar
    • scripts
    • shapes
    • webmap_containers
EOmaps
  • <no title>
  • eomaps
  • callbacks
  • ClickCallbacks
  • print_to_console
  • Edit on GitHub

print_to_console

ClickCallbacks.print_to_console(pos_precision=4, val_precision=4, text=None, show_all_values=True, **kwargs)

Print details on the clicked pixel to the console.

Parameters:
  • pos_precision (int) – The floating-point precision of the coordinates. The default is 4.

  • val_precision (int) – The floating-point precision of the parameter-values (only used if β€œval_fmt=None”). The default is 4.

  • text (callable or str, optional) –

    if str: the string to print if callable: A function that returns the string that should be printed in the annotation with the following call-signature:

    >>> def text(m, ID, val, pos, ind):
    >>>     # m   ... the Maps object
    >>>     # ID  ... the ID in the dataframe
    >>>     # pos ... the position
    >>>     # val ... the value
    >>>     # ind ... the index
    >>>
    >>>     return "the string to print"
    

    The default is None.

  • show_all_values (bool, optional) – If True, show all values and coordinates of picked points. If False, only (min…max) values are shown if multiple datapoints are picked. The default is True.

Previous Next

© Copyright . Revision ab2452db.

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