environmentaltools.graphics.show
- environmentaltools.graphics.show(file_name: str = None, res: int = 600)[source]
Save figure to file or display on screen.
Saves the current matplotlib figure to a file with specified resolution or displays it interactively.
- Parameters:
file_name (str, optional) – Path to save the plot. If None, displays interactively. If “to_axes”, returns without action. Defaults to None.
res (int) – Resolution in DPI for saved figure. Defaults to 600.
- Returns:
Either displays the figure or saves it to file.
- Return type:
None