msticpy.vis.figure_dimension module

figure_dimension - helps set the width and height properties of a figure for plotting.

msticpy.vis.figure_dimension.bokeh_figure(func) Callable[[Any], Any]

Wrap bokeh ‘figure’ function for version-agnostic param naming.

Parameters:

func (Callable) – The function to wrap

Returns:

The wrapped figure function.

Return type:

Callable

msticpy.vis.figure_dimension.set_figure_size(fig: bokeh.plotting.figure, width: int, height: int) bokeh.plotting.figure

Set the figure size.

Parameters:
  • fig (figure) – initial figure

  • width (int) – width dimension

  • height (int) – height dimension

Returns:

figure

Return type:

figure with correct width and height