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.