_check_matplotlib#
- pytorch_forecasting.utils._dependencies._check_matplotlib(ref='This feature', raise_error=True)[source]#
Check if matplotlib is installed.
- Parameters:
ref (str, optional (default="This feature")) – reference to the feature that requires matplotlib, used in error message
raise_error (bool, optional (default=True)) – whether to raise an error if matplotlib is not installed
- Returns:
bool
- Return type:
whether matplotlib is installed