arpes.plotting.ui.profile_view#

arpes.plotting.ui.profile_view(data, *, use_quadmesh=False, posx=None, posy=None, **kwargs)#

Generates an interactive 2D profile view with cross-sectional analysis.

Enables pointer-based inspection of a 2D ARPES dataset along both axes, showing intensity profiles intersecting at the pointer location.

Parameters:
  • data (xr.DataArray) – 2D ARPES dataset.

  • use_quadmesh (bool, optional) – If True, uses Holoviews QuadMesh instead of Image. Useful for irregular coordinate grids. Defaults to False.

  • posx (PointerX | None, optional) – PointerX stream for x-axis interaction.

  • posy (PointerY | None, optional) – PointerY stream for y-axis interaction.

  • **kwargs – Additional keyword arguments for visualization. - width (int): Image width in pixels. - height (int): Image height in pixels. - cmap (str): Colormap name. - log (bool): Whether to use log scale for intensity. - profile_view_height (int): Size of the profile views.

Returns:

Combined Holoviews layout with image and profile views.

Return type:

holoviews.AdjointLayout

Todo

There are some issues.

  • 2024/07/08: On Jupyterlab on safari, it may not work correctly.

  • 2024/07/10: Incompatibility between bokeh and matplotlib about which is “x-” axis about plotting xarray data.