Skip to main content
Ctrl+K
EOmaps  documentation - Home EOmaps  documentation - Home
  • Installation
  • User guide
  • Examples
  • API Reference
  • Contribution Guide
  • FAQ
  • GitHub
  • PyPI
  • conda-forge
  • Installation
  • User guide
  • Examples
  • API Reference
  • Contribution Guide
  • FAQ
  • GitHub
  • PyPI
  • conda-forge

Section Navigation

  • annotate
  • clear_annotations
  • clear_markers
  • get_values
  • highlight_geometry
  • load
  • mark
  • peek_layer
  • plot
  • print_to_console
  • print_to_console

print_to_console#

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

On this page
  • PickCallbacks.print_to_console()

This Page

  • Show Source

Created using Sphinx 8.0.2.

Built with the PyData Sphinx Theme 0.16.1.