get_view_bounds¶ tiatoolbox . visualization . bokeh_app . main . get_view_bounds get_view_bounds(dims, plot_size)[source]¶ Helper to get the current view bounds. Estimate a reasonable initial view bounds based on the image dimensions and the size of the viewing plot. Parameters: dims (tuple[float, float]) – The dimensions of the image. plot_size (tuple[float, float]) – The size of the plot. Returns: The view bounds. Return type: tuple[float, float, float, float]