gsplot.use_backend#
- use_backend(name)#
Select a Matplotlib backend before pyplot or a figure is initialized.
- Parameters:
name (str) – Backend name accepted by Matplotlib.
- Raises:
ConfigError – If pyplot has already been imported, the name is invalid, or Matplotlib rejects the backend.
- Returns:
The selection is applied to Matplotlib’s process-wide backend state.
- Return type:
None
Examples
>>> import gsplot as gs >>> gs.use_backend("Agg")