pyoculus.utils.plot.create_canvas
- pyoculus.utils.plot.create_canvas(rcstyle=None, **kwargs) tuple
Create a Matplotlib canvas with a figure and axes.
This function checks if a figure or axes object is provided in the keyword arguments. If neither is provided, it creates a new figure and axes. It returns the figure, axes, and any remaining keyword arguments.
- Parameters:
rcstyle (str) – The Matplotlib style to use.
**kwargs – Arbitrary keyword arguments. Can include fig for a Matplotlib figure or ax for axes.
- Returns:
A tuple containing the figure, axes, and remaining keyword arguments.
- Return type:
tuple