dbdicom.extensions.matplotlib.plot_mosaic#

dbdicom.extensions.matplotlib.plot_mosaic(series, zdim='InstanceNumber', rows: int | None = None, colorbar=True, clim: tuple | None = None, gridspacing=100, size=10)[source]#

Show a 3D array as a mosaic

Parameters:
  • zdim (str, optional) – slice dimension. Defaults to ‘InstanceNumber’

  • series (dbdicom.Series) – Series with the array to be plotted.

  • rows (int, optional) – Number of rows of the mosaic. If set to None the mosaic will be chosen to be approximately square. Defaults to None.

  • colorbar (bool, optional) – If True, a color bar is shown next to the mosaic. Defaults to True.

  • clim (tuple of 2 elements, optional) – if provided, this determines the minimal and maximal signal values shown. If it is set to None or not provided, it will be taken from the WindowCenter and WindowWidth values in the DICOM header. Defaults to None.

  • gridspacing (int, optional) – spacing in mm between gridlines on the plot. Defaults to 100 mm.

  • size (float, optional) – size of the largest dimension of the image in inches. Defaults to 10 inch

Examples using dbdicom.extensions.matplotlib.plot_mosaic#

Rotate and translate

Rotate and translate