How to modify the content of "data probe" using python script

Hi everybody,

I’m looking for a bit of help. I would like to modify the content of “data probe” in python script inside Slicer.
For instance : how to

  • activate the colorbar on the overlay
  • enable/disable corner text annotation
  • change font properties

Maybe I missed it in the documentation, don’t hesitate to refer to it. Thanks a lot.

See examples in script repository -

If you don’t find how to access a specific function then have a look at the DataProbe module source code (it is implemented in Python) and take out or call the relevant code snippet.