figureflow.figure_panel.FigurePanel.add_colorbars

figureflow.figure_panel.FigurePanel.add_colorbars = <function FigurePanel.add_colorbars>

Add colorbars to imagegrid, based on their colormaps. For each colormap in the image grid only one colorbar will be shown.

Parameters:
  • site – None or str, one of [“bottom”, “top”, “left”, “right”] colorbar will be shown at the respective site of the panel If it is bottom or top, it will be shown in every column If it is left or right it will be shown in every row For now, it assumes that in the respective dimension (row or column) the image ranges are different and therefore should be displayed in every row/column site of image grid ad which colorbar/s will be shown it will never be shown within the image grid

  • channels – list of ints; channels for which colorbars will be shown if multiple channels have the same colormap only one of the channels has to be in the list for it to be displayed. default is that colorbars are shown for all channels

  • tick_labels – list of two strings, labels to put on left (first value) and right end (second value) of colorbar, instead of floats

  • size – float, size of colorbar in fraction of axes it is added to

  • tick_distance_from_edge – int, 0 to 0.4; relative distance from edge to indicate value on colorbar (relative value is indicated) Move two ticks of colorbar from outer edges away thereby preventing the numbers to overlap with neighboring images

  • font_size_factor – factor by which the font size is incrased, factor of 1 means that self.font_size is used

  • padding – padding, float; in relative units of size of colorbar

  • tick_length – float; length of ticks for tick values at colorbar in points

  • label_padding – float; padding of tick values from ticks in points

  • only_show_in_rows – list of ints; in which rows of the image grid should the colorbar be shown

  • only_show_in_columns – list of ints; in which columns of the iamge grid should the colorbar be shown