Maps.cb.click.attach.print_to_console#

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